[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
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 "ã" "¢" 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 ¢ not defined"
> Any help would be appreciated.
> Chicago-talk mailing list
> Chicago-talk at pm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Chicago-talk