Andreas Hartmann schrieb: [...]
>> Element docElement = sourceDom.getDocumentElement(); >> if (this.dom == null) { >> String namespaceUri = docElement.getNamespaceURI(); >> String prefix = docElement.getPrefix(); >> String localName = docElement.getLocalName(); >> >> if (namespaceUri == null || prefix == null) { >> this.dom = DocumentHelper.createDocument(null, localName, null); >> } else { >> NamespaceHelper helper = new NamespaceHelper(namespaceUri, >> prefix,localName); >> this.dom = helper.getDocument(); >> } >> >> if the source document uses a default namespace, prefix will probably be >> null. > > Actually it should be an emtpy string. You were right, it is officially null :) I changed it in your branch. -- Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]