XML leading trailing space in elements removal.
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