[jdom-interest] XmlOutputter - printNamespace - NO_NAMESPACE outputs xmlns="", bug?
Bradley S. Huffman
hip at csa.cs.okstate.edu
Wed Jul 2 18:48:34 PDT 2003
John Jefferson writes:
> Actually I do something like this:
>
> String xml = "<root> <child1> data </child1> </root>";
> StringReader sr = new StringReader(xml);
Why don't you do
String xml = "<root xmlns=\"http://localhost/root\"> <child1> data </child1> </root>";
So all elements are created in the "http://localhost/root" namespace.
Brad
More information about the jdom-interest
mailing list