This question seems to be as pointedly ignored as the recurring "Xerces-X a Win32 static library" question, but I'm trying anyway.
How do I get DOMWriter to write a xml declaration at the top of an xml doc? As many have said, even after calling setEncoding, setVersion and setStandalone, the xml declaration is not included in the doc. Natch, if you write in any format other than UTF-8 (I'm trying to write in UTF-16 -- rocket science!!!) it can't be parsed without the declaration. If I take the resulting doc and just paste in the declaration (with encoding="UTF-16") the doc is parsed fine. So it's getting written ok, it just can't be parsed without the declaration. I suppose in theory I could go around to all my users and manually paste in that line whenever they save a file, thus ensuring it will be loaded and parsed correctly later. This seems somewhat inefficient though. Does anyone know the off-season availability of Santa Claus? Might he be interested in per-piece work of this nature? Oh, incidentally, DOMWriter also appears to refuse to format UTF-16 in pretty print. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
