In my previous post I described how to load XML documents containing undeclared namespaces.
Of course, I did not have to wait too long for the next show-stopper to come up: As soon as a document contains an HTML entity (like etc.), loading fails due to the undeclared entity.
I finally found some tips on entity resolvers in this article, and a code fragment of how to embed entity declarations in .Net resources here.
April 16, 2008 at 21:04 |
[...] I have previously written about parsing XML/XHTML files with C# here and here. [...]