Skip to Main Content

SQL & PL/SQL

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!

grouping in xmlserialization

oratechsMar 15 2013 — edited Mar 15 2013
Hi all,

how do i group values in xml serialization

my query
select xmlserialize(document
             xmlelement("l",
               xmlattributes(locale_code as "id", BASE_FLAG AS "b" , dbms_lob.substr(text) as "d")
             )
             as Nclob indent
           ) as row_data
   from wrk_catalog_rd_l ;
would return something like this

1 <l id=0 b=0 d='abcd'/>
1 <l id=0 b=0 d='abcd'/>
2 <l id=1 b=1 d='abcd'/>

but i need something like this..

1 <l id=0 b=0 d='abcd'/> <l id=0 b=0 d='abcd'/>
2 <l id=1 b=1 d='abcd'/>

your help is appreciated... thank you...
This post has been answered by odie_63 on Mar 15 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 12 2013
Added on Mar 15 2013
2 comments
236 views