[BUG] cElementTree can't handle attributes with tabs

Aaron Bentley aaron.bentley at utoronto.ca
Sun Jul 2 04:57:24 BST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Aaron Bentley wrote:
> John Arbash Meinel wrote:
>>> Aaron Bentley wrote:
>>>>> Oh, well tabs are illegal in XML.
>>> As in you are supposed to escape them, or how are you supposed to
>>> represent them with an XML attribute?
> 
> As in totally illegal.  Not escaped, not as CDATA.  Just not permitted.
>  It's the same restriction for all ASCII control characters, with
> exceptions for CR and LF, and I forget what else.

I am mistaken.  Sorry about that.

This is the relevant section:
http://www.w3.org/TR/REC-xml/#charsets

[2]   	Char	   ::=   	#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD]
| [#x10000-#x10FFFF]

So x9 is one of the few permitted ascii control characters.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEp0Qk0F+nu1YWqI0RAgNcAJ4/rCRShguUvK21CWqhoOkxz9uJ9gCggT92
gazDp0N+o8qjll6nq/ijMHc=
=jevX
-----END PGP SIGNATURE-----




More information about the bazaar mailing list