Skip to Main Content

DevOps, CI/CD and Automation

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!

Problem with XMLSerialize / indented XML

Oliver LNov 7 2008 — edited Nov 10 2008
My Problem is that my XML output is only one line like:
<?xml version="1.0" encoding="ISO-8859-15"?><rss version="2.0"><channel><title>Test</title></channel></rss>

Iam interested in exporting xml like that:
<?xml version="1.0" encoding="ISO-8859-15"?>
<rss version="2.0">
..<channel>
....<title>Test</title>
..</channel>
</rss>


I heard something about xmlserialize which should be used like that:
select xmlserialize(DOCUMENT xmltype('<?xml version="1.0" encoding="ISO-8859-15"?><rss version="2.0"><channel><title>Test</title></channel></rss>')) from dual;

but its no change in my output.
Can someone help me?

Edited by: Oliver L on 07.11.2008 14:15
This post has been answered by Jason_(A_Non) on Nov 7 2008
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 8 2008
Added on Nov 7 2008
2 comments
4,341 views