Browse > Article

An SQL Function for the Construction of Recursively Structured XML values from the Relational Data  

Park, Sung-Chul (경북대학교 전자전기컴퓨터학부)
Park, Young-Chul (경북대학교 전자전기컴퓨터학부)
Abstract
SQL:2003 standard provides SQL/XML publishing functions to publish the result of an SQL query as XML values but it does not provide any SQL/XML publishing function that can publish the result of a recursive query as recursively structured XML values. Therefore, for the relational tuples which are connected directly or indirectly according to given conditions, to publish both the contents of them and the relationship among them as XML values with the use of appropriate SQL/XML publishing functions, we have to write a nested SQL query. Writing that query, however, is not easy provided that the depth of the connections is deep even if we know the depth of them and is not possible once the depth of the connections is not known in advance. In order to resolve that problem, we propose a new SQL function XMLNEST that can publish the result of a recursive query as recursively structured XML values.
Keywords
SQL/XML publishing function; recursive query; XMLNEST;
Citations & Related Records
연도 인용수 순위
  • Reference
1 ISO, "ISO/IEC 9075 -14:2006(E) information tech-nology - Database languages - SQL - Part 14: XML-Related Specifications (SQL/XML)," 2006
2 ISO, “ISO/lEC 9075-2-1999 for Information Tech-nology - Database Languages - SQL - Part 2: Foundation (SQL/Foundation),” 1999
3 ISO, “ISO/IEC 9075-14:2003(E) Information tech-nology - Database Languages - SQL - Part 14: XML-Related Specifications (SQL/XML),” 2003
4 J. Shanmugasundaram, E. Shekita, R. Barr, M. Carey, B Lindsay, H. Pirahesh, B. Reinwald, “Effi-ciently Publishing Relational Data as XML Docu-ments,” VLDB Journal 10(2-3), 2001
5 J. Melton, S. Buxton, “QUERYING XML XQuery, XPath, and SQL/XML in Context,” Morgan Kauf-mann Publishers, 2006
6 ORACLE, "SQL Language Reference 11g Release 1 (11.1)," 2008
7 A. Eisenberg, J. Melton, “Advancements in SQL/XML,” SIGMOD Record, Vol.33, No.3, pp. 79-86, 2004   DOI