开发者

What is the fastest way to add/replace a single attribute in an XML document?

开发者 https://www.devze.com 2022-12-20 13:09 出处:网络
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 an

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消