[jdom-interest] RE: Whitespace

Bradley S. Huffman hip at cs.okstate.edu
Mon Jan 19 20:19:42 PST 2004

"Jeremy Whitlock" writes:

> Bradley,
>       That made no change.  Here it is:

Hmmm, I use this

<?xml version="1.0" encoding="UTF-8"?>
<!--DBPirate Configuration File-->
         <url>jdbc:mysql at localhost:3306:cookbook:cbuser:cbpass</url>
         <url>jdbc:oracle:thin at localhost:1521:orcl:scott:tiger</url>

with this

import org.jdom.Document;
import org.jdom.input.SAXBuilder;
import org.jdom.output.XMLOutputter;

public class TestXMLOutputter {

    public static void main(String args[]) throws Exception {
        try {
            SAXBuilder builder = new SAXBuilder();
            Document doc = builder.build("pirate.xml");
            XMLOutputter outputter = new XMLOutputter();
            outputter.output(doc, System.out);
        catch (java.io.IOException e) {

And it worked as expected with B9 and the latest CVS. What version of
JDOM are you using?


More information about the jdom-interest mailing list