Parsing XHTML with C#

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.

One Response to Parsing XHTML with C#

  1. […] I have previously written about parsing XML/XHTML files with C# here and here. […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: