XSL and DOM both work. Go with whatever you ( or your team ) feels more
comfortable maintaining going forward.
It;s hard to give a good recommendation on a tiny example. There are many
more factors to consider ..
--
HTH
Christoph Schittko [MVP, XmlInsider]
Software Architect, .NET Mentor
"Raife" <an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...
i have a file like this (which im manipulating using
vb.net)
<CUSTOMERS>
<PRIMARY>Y</PRIMARY>
<SURNAME>BROWN</SURNAME>
which i want to make like this
<CUSTOMERS PRIMARY="Y">
<SURNAME>BROWN</SURNAME>
i dont know whether to this is easy to do using xsl or
whether this is a better way using DOM and Xpath or
something. Any help is greatly appreciated. thanks.