[xml] Substitution of default entities

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


to get:


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

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