ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
Re: Keeping numeric entities intact when parsing and serializing?
by Nicolas Mendoza other posts by this author
Oct 9 2009 8:58AM 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 PÃ¥ Fri, 09 Oct 2009 17:54:39 +0200, skrev 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: &#x69; Not resolved:
>  %amp;</xml>"); print $d->toString(); '
>  <?xml version="1.0"?>
>  <xml>Resolved: i Not resolved: %amp;</xml>
> 

Sorry meant this:

$ perl -wle 'use XML::LibXML; my $xml_parser = XML::LibXML-> new(); my $d =  
$xml_parser-> parse_string("<xml>Resolved: &#39; Not resolved:  
&amp;</xml> "); print $d->toString(); '
<?xml version="1.0"?> 
<xml> Resolved: ' Not resolved: &amp;</xml>

But same problem remains. Also I can't re-escape later I'm afraid.

-- 
Sendt med Operas revolusjonerende e-postprogram: http://www.opera.com/mail/
_______________________________________________
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved