[xml] Substitution of default entities



Is it possible to produce HTML output with the default entities replaced? For example, given the following legal XML:

<foo>&lt;bar&gt;text&lt;/bar&gt;</foo>

to get:

<foo><bar>test</bar></foo>

My code retrieves XML from various sources, some of which embed HTML tags using the default entities.

On a similar note: Is there a default catalog(?) for enabling the substitution of the large set of HTML defined entities (e.g., &nbsp;)?

I've searched the archives (multiple times actually), played with xmlSubstituteEntitiesDefault, and so forth to no avail.

Brendan Dixon
brendandixon mac com
425.922.8798





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]