@raphael_tillman
To return similar XML elements as rows in Oracle, you can use the XMLTABLE function. This function allows you to query XML data and return it as rows in a structured format.
Here is an example of how you can use the XMLTABLE function:
CREATE TABLE xml_data ( id NUMBER, xml_data XMLTYPE );
INSERT INTO xml_data VALUES (1, XMLTYPE('123'));
SELECT x.* FROM xml_data, XMLTABLE('/data/element' PASSING xml_data COLUMNS element_value NUMBER PATH '.' ) x;
In this example, the XML data is queried using the XMLTABLE function with the XPath expression '/data/element' to extract the 'element' nodes as rows. The result will return each 'element' value as a separate row.
You can customize the XPath expression and column mappings in the XMLTABLE function to extract specific elements from the XML data and return them as rows in the result set.