What is the fastest way to add/replace a single attribute in an XML document?
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.
string together an XmlReader and XmlWriter and while you loop through the nodes, look for the target node you want to change.
精彩评论