in reply to
Re^2: LibXML doesn't encode single or double quotes
in thread LibXML doesn't encode single or double quotes
The clients that will be parsing this XML expect quotes and single quotes to be in entity form.
How would they even know? Any compliant XML parsing library will decode the entities and pass the actual character up to the application layer. Getting the XML content with entities in their raw form would be a bug that could only cause downstream pain. If that really is a requirement then I feel your pain.