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!

xsl to indent xml string

Status
Not open for further replies.

lowbk

Technical User
Nov 26, 2001
162
SG
is it possible to write a xsl such that the following xml string

<file><1><a>value of a</a><1><b>value of b</b></file>

will become

<file>
<1>
<a>value of a</a>
</1>
<b>value of b</b>
</file>


any suggestions, basically i'm stuck at how to &quot;capture&quot; the tags and how to insert indentation?

any kind soul pls advise
 
hi!
you can insert text nodes between your tags elements.
if u will specify your code language i might be able to provide some example code...

raikyng.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top