Re: Parsing without resolving entities
On 29/10/2007, Randy McGarvey <rmcgarvey@g...> wrote: > If I have data with character entities such as § or — in the XML, > what is the best way to keep those intact, as is, after a parse. Are there > any parsers that have an option not to resolve entities? What is the best > way you've found to deal with this issue? Do you escape the ampersands > (e.g. &sect;) in a pre-process? Do you address it in an entity handler > to re-write the original entity text? This seems like a real pain that must > have a common solution. It's a common question that often arises because the characters involved cause problems downstream... in which case you're better off trying to fix the root cause (likely to be an ecoding issue) that rather than add pre and post processes. -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format