Groups | Blog | Home
all groups > dotnet xml > may 2004 >

dotnet xml : How to skip  ?


joemann
5/12/2004 4:56:02 PM
I'm reading XHTML documents into an XmlDocument object via an XmlTextReader. The problem is that many of the documents use very large numbers of   tags for formatting, and it appears that the XmlDocument parses each of these into its own node - which bogs down the load time. If I remove the   tags then the document loads almost instantaneously - but obviously I want to preserve the formatting of the original document. Is there a way to get the XmlDocument object to treat   as just text?

Oleg Tkachenko [MVP]
5/13/2004 10:15:20 AM
[quoted text, click to view]

That's one of DOM deficiencies. Can you use XPathDocument instead?

--
Oleg Tkachenko [XML MVP]
AddThis Social Bookmark Button