hi,
I have an xmlFile
<code>
<rows>
<row>
<PRODUCT-TYPE>bike</PRODUCT-TYPE>
<PRODUCT-DATE>01/01/2004</PRODUCT-DATE>
<ADDED-NODE>"blah"<ADDED-NODE />
</row>
<PRODUCT-TYPE>Car</PRODUCT-TYPE>
<PRODUCT-DATE>01/01/2003</PRODUCT-DATE>
<ADDED-NODE>"blah"<ADDED-NODE />
</row>
</rows>
</code>
I want to change the markup of the PRODUCT-TYPE node.
I want to change it to:
<ProductType>
So, my file would become
<code>
<row>
<ProductType>bike</ProductType
<PRODUCT-DATE>01/01/2004</PRODUCT-DATE>
<ADDED-NODE>1stCollectionItemText<ADDED-NODE />
</row>
etc
</code>
I can obtain the nodes no problem.
However, I have tried the:
1) .InnerXml property
2) .ReplaceChild method
3) OuterXml property (Which I don't think I can use because it is read-only)
can someone tell me how to change the markup..I'm struggling.
many thanks,
yogi
--
Message posted via http://www.dotnetmonster.com