Skip Menu |

This queue is for tickets about the XML-Writer CPAN distribution.

Report information
The Basics
Id: 33245
Status: rejected
Priority: 0/
Queue: XML-Writer

People
Owner: Nobody in particular
Requestors: rmeden [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: should &apos and &quot be escaped?
Sorry, I'm not an XML expert... Should single and double quotes be escaped in characters()? It was reported as a bug in an application that uses XML::Writer, but I can't find a definitive source that says it cannot be in the XML. XML::Writer is probably correct, but if you have a reference I'd appreciate it. Robert
From: joe [...] kafsemo.org
On Wed Feb 13 23:31:50 2008, REDEN wrote: ... Show quoted text
> Should single and double quotes be escaped in characters()?
They don't need to be: <http://www.w3.org/TR/REC-xml/#syntax>. The only characters that need to be escaped in character data are ampersands, opening angled brackets and the sequence ']]>'. Escaping them is perfectly valid but unnecessary - XML::Writer leaves them as-is to make documents clearer and smaller.