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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

additional lines between tags

Status
Not open for further replies.

goodybytes

Programmer
Jan 7, 2002
2
GB
I have a problem that every time I update an XML file via an in house content management system, the processed XML file contains masses of empty lines between the tags.
Each time I edit and save the file the gaps get bigger.

Anyone else had a similar problem?

Might be an XSL one.
 
i don't know if the following will work.

if you are using java, the jaxp api has a normalise() method that might be useful.

if you want to use XSL, you may want to try
<xsl:strip-space elements=&quot;caption content item&quot;/>

where caption, content, and item are the names of the tags that contains spaces
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top