I've never tried to do this since, normally, you want the XML processor to 
handle entities such as the & symbol - and if either the input XML or output 
XML contains these symbols unaltered then you don't have legal XML.

If you really need to leave these unprocessed, then perhaps you can replace 
the SAX EntityResolver with your own implementation?

Perhaps if you could explain what you're trying to do?

Regards

On Monday 17 March 2008 05:39:07 Chris Pratt wrote:
> Sorry I missed the normal Friday free-for-all with my Off Topic
> question, but I'm hoping someone around here has already solved the
> problem I'm staring at.
>
> I am trying to pre-process a stream of HTML/XML.  My first thought was
> to just use SAX (with TagSoup for the HTML) and watch for the tokens I
> needed to modify while passing the rest through, but all the XML tools
> I can find are geared towards processing XML, not pre-processing it.
> So they help you out by automatically converting entities to their
> values and other things that completely get in the way of
> pre-processing.  Has anybody else had to solve this problem?  If so,
> any pointers would be GREATLY appreciated.  Thanks.
>   (*Chris*)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to