[jdom-interest] Using xml prefix for an attribute
Bradley S. Huffman
hip at cs.okstate.edu
Tue Nov 25 08:37:23 PST 2003
Morten writes:
> I'm serializing some data to TMX (an XML based format), which requires
> an attribute in the xml NS, eg. xml:lang="de". I've tried the following:
>
> Element e = new Element("elem");
> e.setAttribute("lang", "de",
> Namespace.getNamespace("xml","http://www.xml.org/"))
Try
e.setAttribute("lang", "de", Namespace.XML_NAMESPACE);
Brad
More information about the jdom-interest
mailing list