Re: Bug (?) in XML::LibXML when creating XML docs with invalid characters
Bjoern Hoehrmann <[email protected]> Tue, 09 Apr 2013 19:16:13 +0200
| Newsgroups | gmane.comp.lang.perl.xml |
|---|---|
| Message-ID | <[email protected]> |
* Francisco Obispo wrote: >Pressed "send" without much testing: > >$ ./test.pl |xmllint -format - = >-:2: parser error : PCDATA invalid Char value 7 ><elem></elem> > ^ > >So, "7" UTF-8 is a control character, I don't think you can use control = >chars in XML at all, however, I guess you can do something like  = >but I'm not sure about the implications on the parsers. You cannot use U+0007 in XML 1.0 documents, and the point of this thread is that aitor expected XML::LibXML to enforce that, so adding such text should fail, but doesn't. The W3C DOM specifications require throwing an exception here, FWIW. -- = Bj=F6rn H=F6hrmann =B7 mailto:[email protected] =B7 http://bjoern.hoehrma= nn.de Am Badedeich 7 =B7 Telefon: +49(0)160/4415681 =B7 http://www.bjoernsworld.de 25899 Dageb=FCll =B7 PGP Pub. KeyID: 0xA4357E78 =B7 http://www.websitedev.d= e/ = _______________________________________________ Perl-XML mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs