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: LibXML: How do I serialize an attribute like this Attr="{" to file
by Bart Schuller other posts by this author
Jan 20 2004 8:45AM messages near this date
view in the new Beta List Site
RE: LibXML: How do I serialize an attribute like this Attr="{" to file | Re: LibXML: How do I serialize an attribute like this Attr="{" to file
On Tue, Jan 20, 2004 at 11:07:44AM +0800, Derek_Chen@[...].tw wrote:
>  If I want to have an output as below
>  <?xml version="1.0"?>
>  <A><AA Attr="&#131;">xxx</AA></A>
>  
>  I have to use setAttribute("Attr",chr(131)). But executing this call
>  will get me the following error Can't coerce UNKNOWN to string in
>  entersub at C:/Perl/site/lib/XML/LibXML.pm line 756.

It's worth pointing out that Unicode character number 131 does not
exist, and so an XML document containing &#131; is not well-formed.

-- 
Bart.
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:

Bart Schuller
Bjoern Hoehrmann

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