Inventors:
James W. Warner - Mountain View CA, US
Abhyudaya Agrawal - San Francisco CA, US
Hui Zhang - Fremont CA, US
Muralidhar Krishnaprasad - Fremont CA, US
Ravi Murthy - Fremont CA, US
Zhen Hua Liu - San Mateo CA, US
Nipun Agarwal - Santa Clara CA, US
Vikas Arora - San Francisco CA, US
Susan M. Kotsovolos - San Carlos CA, US
Anand Manikutty - Foster City CA, US
Rohan Angrish - Redwood City CA, US
Assignee:
Oracle International Corporation - Redwood Shores CA
International Classification:
G06F 17/00
Abstract:
To associate XML data objects (“child objects”), stored in rows of relational or object-relational tables, with the appropriate XML data objects (“parent objects”) from which the child objects descend, tables that contain child objects (“out-of-line” tables) are constructed with an additional column. In one embodiment, this column stores values that identify the root objects, in the appropriate table, from which the respective child objects descend. Hence, the root object from which any given object descends is traceable by following the respective value back to the corresponding root object. In one embodiment, this column stores values that identify the complete XML hierarchical path, through multiple tables, back to the root object from which the respective child objects descend. Consequently, XML query language queries against XML documents stored in such tables can be rewritten as SQL queries against the data in the tables, even in the presence of cyclic constructs.