On Sunday, October 27, 2013 9:47:21 AM UTC-7,
ehr...@gmail.com wrote:
> Why does your XML need to be pretty printed?
I must not have explained clearly. Of the two example outputs I gave, the one I want is the one that's *not* pretty-printed.
There doesn't seem to be any way in Javascript 1.6 to turn an XML DOM object into an XML string without pretty-printing it. E4X pretty-prints the DOM subtree. I want something that *doesn't* pretty-print.
The only option I've seen to do what I want in Rhino involves calling Java classes from my Javascript... in which case I'd be better off just rewriting my function in Java. I'd hoped to avoid that.