I'm trying to make produce this element with JDOM: <ref xlink:href="download.html"/> How is this done? I guessed the code might look like this, but it doesn't work: Element e = new Element("ref"); e.setAttribute("xlink:href", "download.html"); Sorry if this is covered elsewhere, I couldn't find an answer searching. Thanks, Ollie