homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

removing trailing space in xml elements.
<element> value </element>

 6:08 am on Jul 13, 2011 (gmt 0)

I am getting an xml file like this.

<Refrigirator> Whirlpool </Refrigirator>
<Washing Machine> Samsung</Washing Machine>
<TV> Samsun TV </TV>
<cooler> L G </cooler>

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.

<Washing Machine>Samsung</Washing Machine>
<TV>Samsun TV</TV>
<cooler>L G</cooler>



brotherhood of LAN

 6:22 am on Jul 13, 2011 (gmt 0)

Welcome to the forums reachparrot,

removing trailing space in xml elements

Is there any particular scripting language you work with? There are a ton of solutions, it really depends what you work with...


 6:42 am on Jul 13, 2011 (gmt 0)

working with OSB (Oracle Service Bus), I have to give this XMl as a input to eiter XSL/Xquery and to get back the XMl with out trailing spaces.

brotherhood of LAN

 7:12 am on Jul 13, 2011 (gmt 0)

Not really familiar with it but perhaps you've not seen this function list? There are options for trimming strings in there.


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved