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!

How to delete newline character/white space from xml using xquery

2608321Mar 27 2014 — edited Apr 3 2014

Suppose my input xml.:


<?xml version="1.0"?>

<note>

<to>deepak</to>

<from>dipayan</from>

<heading>osb</heading>

<body>body_1</body>

</note>

Output should be in single line (It should delete all the new line ):

<note><to>deepak</to><from>dipayan</from><heading>osb</heading><body>body_1</body></note>


Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 1 2014
Added on Mar 27 2014
13 comments
16,763 views