Mozilla/mozilla/js/rhino/testsrc/doctests/xmlOptions.doctest
nboyd%atg.com a442ef0308 Add ability for embeddings to set options on the XML implementation.
git-svn-id: svn://10.0.0.236/trunk@255805 18797224-902f-48f8-a5cc-f745e15eee43
2009-01-14 13:31:23 +00:00

15 lines
326 B
Plaintext
Executable File

js> var x = <foo><bar><baz>1</baz></bar></foo>;
js> x
<foo>
<bar>
<baz>1</baz>
</bar>
</foo>
js> var xmlLib = org.mozilla.javascript.xml.XMLLib.extractFromScope(this);
js> xmlLib.isPrettyPrinting();
true
js> xmlLib.setPrettyPrinting(false);
js> xmlLib.isPrettyPrinting();
false
js> x
<foo><bar><baz>1</baz></bar></foo>