M
mdx
Hi all
I am trying to ouput some XML. I read the XMLOutputter
API(http://www.jdom.org/docs/apidocs/org/jdom/output/XMLOutputter.html),
and the contructor indicated that I can pass in a Format object.
So, I try to do this
Format XMLOutFormat = new Format();
XMLOutFormat.setIndent(" ");
XMLOutFormat.setLineSeparator("\n");
outputter = new XMLOutputter(XMLOutFormat);
However, the compiler says "the constructor Format()" is not visible.
How do I instantiate a Format object then? Please advise.
Thanks.
Howard
I am trying to ouput some XML. I read the XMLOutputter
API(http://www.jdom.org/docs/apidocs/org/jdom/output/XMLOutputter.html),
and the contructor indicated that I can pass in a Format object.
So, I try to do this
Format XMLOutFormat = new Format();
XMLOutFormat.setIndent(" ");
XMLOutFormat.setLineSeparator("\n");
outputter = new XMLOutputter(XMLOutFormat);
However, the compiler says "the constructor Format()" is not visible.
How do I instantiate a Format object then? Please advise.
Thanks.
Howard