tags:

views:

31

answers:

1

What is the fastest way to add/replace a single attribute in an XML document. Regexps aren't stable for use in XML documents and XSLT isn't fast enough.

A: 

string together an XmlReader and XmlWriter and while you loop through the nodes, look for the target node you want to change.

Sam
Could you provide some kind of code snippet?
kalle