March 11, 2015
8:21 a.m.
Hi,
I was wondering why the apostrophe is not automatically escaped as other characters?
Because it doesn't have to? http://www.w3.org/TR/2008/REC-xml-20081126/#syntax
For example:
< is transformed to <
"<" and "&" must be escaped
and
is transformed to >
">" may be escaped (and must be in certain contexts)
but ' is not transformed to '
"'" (and '"') may be escaped) So maybe this is libxml2's decision of how to handle things, when there's a choice. Holger Landesbank Baden-Wuerttemberg Anstalt des oeffentlichen Rechts Hauptsitze: Stuttgart, Karlsruhe, Mannheim, Mainz HRA 12704 Amtsgericht Stuttgart