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!

XML leading trailing space in elements removal.

user12679330Jul 13 2011 — edited Aug 4 2011
Hi,
I am getting an xml file like this.

<House>
<Refrigirator> Whirlpool </Refrigirator>
<WashingMachine> Samsung</WashingMachine>
<TV> Samsun TV </TV>
<cooler> L G </cooler>
</House>


I have to get the output with out trailing spaces in the XMl elements. No schema restrictions has to be applied on this xml file only either with XSLT/Xquery or any other which suits to this I have to use.


<House>
<Refrigirator>Whirlpool</Refrigirator>
<WashingMachine>Samsung</WashingMachine>
<TV>Samsun TV</TV>
<cooler>L G</cooler>
</House>





Thanks.

Edited by: user12679330 on Jul 13, 2011 12:41 AM
This post has been answered by odie_63 on Jul 13 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 1 2011
Added on Jul 13 2011
11 comments
1,313 views