Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

string Manipulation with XML file????

Status
Not open for further replies.

qajussi

Programmer
Joined
Mar 22, 2004
Messages
236
Location
US
I need to get rid of white space using DOM if that is possible. I was told to use DOM.
HOw do I do the string manipulation with DOM???


I know that XSLT has some string manipulation functions I could use.

But how do I parse the XML file and recreate XML file using XSLT??

I used ignore white space attribute and didn't work with my XML files..


Can someon guide me how I need to do this??
Example)

<to>John W. Smith, Tom J. Sanders, Drew J. Taylor</to>
I need to get rid of these white spaces between words.

I need either like this
<to>John W. Smith, Tom J. Sanders, Drew J.Taylor</to>
or
<to>John W. Smith</to>
<to>Tom J. Sanders</to>
<to>Drew J.Taylor</to>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top