> but maybe I should set it somehow already in Document while creating > elements? > That's what we used to do. We'd create a document with the String: "<?xml version="1.0" encoding="UTF-8"?>\n<Document/>" or something like that.
There's probably a better way, but we never bothered to find it. You can set the encoding on the OutputFormat object (org.apache.xml.serialize.OutputFormat) in Xerces before serialization, but I've not tried it so I don't know how it works. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

