[jdom-interest] b8 vs. b9-rc2 difference
Robertson, Jason
Jason.Robertson at acs-inc.com
Tue Apr 22 04:42:49 PDT 2003
I haven't tried to find the difference in the code, but with this simple
program:
import org.jdom.*;
import org.jdom.input.*;
import org.jdom.output.*;
import java.io.*;
class XMLOutputterTest
{
private static void main(String[] args)
throws JDOMException, IOException
{
SAXBuilder builder = new SAXBuilder();
Document doc = builder.build(new FileInputStream(args[0]));
XMLOutputter out = new XMLOutputter(" ", true);
out.output(doc, System.out);
}
}
I get two very different outputs when using b8
C:\XMLOutputterTest>XMLOutputterTest simple.xml
<?xml version="1.0" encoding="UTF-8"?>
<simple>
<xml>
<example />
</xml>
</simple>
C:\XMLOutputterTest>
Versus b9-rc2:
C:\XMLOutputterTest>XMLOutputterTest simple.xml
<?xml version="1.0" encoding="UTF-8"?>
<simple>
<xml>
<example />
</xml>
</simple>
C:\wsg\prototype\SchemaTest>
Is this a new feature? :)
Jason
More information about the jdom-interest
mailing list