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!

turn off pretty-print when using XMLType.extract() function

332222May 2 2006 — edited May 3 2006
Hello,

I am developing a trigger that splits a XML document into mulitple XML elements. The XML document is stored as XMLType column (CLOB) in Oracle 10g release 1 database, The root element of the document <bill> contains multiple child elements <section>.

I am looping through the XMLType document and using extract() function to otain the child elements <section> and other information to identify each <section>. Everything works fine except that XMLType.extract('/bill/section').getStringVal() automatically force pretty-print (inserting extra white spaces). I can delete multiple whitespaces using oracle regular expression, however this doesn't work 100% as <section> element contains other elements that are of mixed content model.

Is there anyway to turn off pretty-print when using extract() function? What's the alternative way of extracting elements from XMLType document using PL/SQL?

Thanks so much for sharing your thoughts.

Noreen
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 31 2006
Added on May 2 2006
1 comment
1,818 views