seven-12 hat gesagt.:Ich habe folgendes ausprobiert:
root.addNamespaceDeclaration(Namespace.getNamespace(""));
dann habe ich in der XML Struktur:
<user xmlns="">
wie kann ich dieses attribut jetzt ändern auf eine Adresse.
wenn ich es so zufüge:The namespace xmlns="http://etwas" could not be added as a namespace to "userdata": The namespace prefix "" collides with the element namespace prefix
Namespace ns = Namespace.getNamespace("http://etwas");
root.addNamespaceDeclaration(ns);