Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

xmltable() without column specifications?

steph0hNov 5 2013 — edited Nov 6 2013

Hi forum,

On Oracle 11g ...

I have a sql-statement like this:

select xx.*

  from stepxml,xmltable('/ROWSET/ZEILE' passing stepxml.x columns

                a varchar2(100) path 'A'

              , b varchar2(100) path 'B'

) xx

;

With XMLTABLE() I have to give a specification for every column that I want to query. This can become quite cumbersome if the XML has got a lot of tags.

I wonder, if there is a way to omit the columns alltogether and still get a table-like output holding every tag present in the xml? Any ideas?

Thanks,

Stephan

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 4 2013
Added on Nov 5 2013
3 comments
2,317 views