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.

1 thought on “Parsing XHTML with C#

  1. Pingback: Introducing graspx « devioblog

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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.