I’m tring to save a xml document.
There are multi-byte strings in the doc.
In that case, these string are translated like &#foo; by escapeIllegalXmlChars.
The third argment of the XmlElement::writeToFile is encoding type.
But I think this implement ignores the encoding-type absolutely.