Skip to main content.
home | support | download

Back to List Archive

Re: XML2 parser error?

From: Peter Karman <karman(at)>
Date: Mon Aug 02 2004 - 16:50:01 GMT
I wondered about this too.

Bill Moseley wrote on 8/2/04 11:42 AM:
> On Mon, Aug 02, 2004 at 01:29:34AM -0700, Jonas Wolf wrote:
>>THanks for the tip, I'll try to make use of that. On a different note, I 
>>realised I should be using encode_entities_numeric instead, because 
>>representations like &quot; seem to annoy libxml2 as well...
> I think we would have heard about that by now if that were true.

Here's Jonas's original email:

Jonas Wolf wrote on 7/28/04 11:09 AM:

 > I use the prog option to generate XML documents to be indexed, using the
 > XML2 parser. To make sure that the XML2 parser does not break, I do
 > HTML::Entities::encode_entities on the text that i enclose in xml tags.

I wonder if instead the encode_entities is having the opposite effect. 
Have you tried NOT using encode_entities at all to see what happens?

Peter Karman - Software Publications Engineer - Cray Inc
phone: 651-605-9009 -
Received on Mon Aug 2 09:50:23 2004