[Chicago-talk] Help with LibXML parsing entities not found

Sean Blanton, Ph.D. sean at blanton.com
Mon Mar 2 16:49:58 PST 2009


Are you committed to using XML::LibXML as opposed to another XML parsing
module?

Sean Blanton


On Mon, Mar 2, 2009 at 2:26 PM, Jim Jacobus <JJacobus at ponyx.com> wrote:

> I'm trying to parse an XML document using XML::LibXML. I'm running into a
> problem where it fails with "entity .. not found". The entities are HTML
> codes such as "&atilde;" "&cent;" etc. These entities are part of
> descriptions I want to use as-is. They are within a
> <description></description> block. I can't seem to find a way to have LibXML
> ignore trying to parse entities within a block.
>
> My code looks like:
>        my $parser = XML::LibXML->new();
>        my $doc    = $parser->parse_file($url);
>
> The error I'm getting looks like "parser error: Entity &cent not defined"
> Any help would be appreciated.
> Thanks.
>
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/chicago-talk/attachments/20090302/0b03071c/attachment.html>


More information about the Chicago-talk mailing list