Eric Gunnerson [mailto:[EMAIL PROTECTED]] wrote:
> My vote would be "Yes". +1. > My experience with using Regex on XML is that it's a pain to > get things parsed apart. I think it's much much easier to use > XmlDocument and then traverse the nodes to get what you want. I don't even think he needs to use an XmlDocument, if performance is the issue and he just needs to burn through a document start to finish, he should just go with an XmlTextReader. > As for performance, I'm not sure. Regex may be faster, but > the XML parser is pretty quick. I don't have any data to prove this next assertion, but I would be willing to be the XmlTextReader is faster than the regex. It's highly specialized and only needs to understand XMLs parsing rules. Later, Drew [ .NET MVP | weblog: http://dotnetweblogs.com/dmarsh ]
