Re: Keeping numeric entities intact when parsing and serializing?
by Nicolas Mendoza other posts by this author
Oct 10 2009 3:23AM messages near this date
view in the new Beta List Site
Re: Keeping numeric entities intact when parsing and serializing?
|
Re: Keeping numeric entities intact when parsing and serializing?
& XSLT On Sat, 10 Oct 2009 01:15:45 +0200, Jenda Krynicky <Jenda@[...].cz>
wrote:
> From: "Nicolas Mendoza" <mendoza@[...].no>
> > Is there some way to keep the entities intact when parsing and
> > serlalizing
> > numeric entities?
> >
> > $ perl -wle 'use XML::LibXML; my $xml_parser = XML::LibXML->new(); my
> > $d =
> > $xml_parser->parse_string("<xml>Resolved: i Not resolved:
> > %amp;</xml>"); print $d->toString(); '
> > <?xml version="1.0"?>
> > <xml>Resolved: i Not resolved: %amp;</xml>
>
> I think you meant &, not %amp;. There is nothing to resolve in
> the later.
>
Correct, I replied to myself immediately after with the & version ;)
> XML::Parser::Expat gives you access to the "original_string" before
> any entities expansion or encoding changes. Maybe you could do your
> thing using that module instead.
>
Thanks will have a look.
--
Nicolas Mendoza
http://my.opera.com/nicomen
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Nicolas Mendoza
Mirod
Jenda Krynicky
Nicolas Mendoza
Aristotle Pagaltzis
Nicolas Mendoza
Aristotle Pagaltzis
Petr Pajas
Nicolas Mendoza
Petr Pajas
Nicolas Mendoza
Aristotle Pagaltzis
Nicolas Mendoza
Nicolas Mendoza
Petr Pajas
|