Hi there,
I've been bumping my head up against this problem all morning now, and can't
come up with an answer, maybe someone with XML::Parser experience can help.
The XML::Parser documentation doesn't really have any suggestions.
Normally you can use the NoExpand method to prevent the parser from
expanding entity references in the text.
But this doesn't affect entity references that appear in attribute values.
Is there any way to handle entity references in attribute values?
My problem is I have tags in my xml that contain entity references like
this:
<section name="text ®"></section>
and XML::Parser generates the following error:
undefined entity at line 6, column 33, byte 218:
<section name="text ®"></section>
===============^
So obviously ® isn't in the internal set of references, and it is
generating an error.
I'd like to set up a handler for this condition, rather than having the
program die!
I have tried setting the ExternEnt handler to handle this case, but it
doesn't seem to get triggered in this instance.
Any ideas?
Mike
Michael Kavanagh
Internet Development Manager
Oxford University Press
v:01865 267 452
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]