[Yanel-dev] XML namespace problem with Java 1.4 whereas it works
with Java 1.5
Michael Wechner
michael.wechner at wyona.com
Fri Jan 18 22:05:37 CET 2008
Hi
I have this strange problem, that when generating an XML with
dbf.setNamespaceAware(true);
DocumentBuilder db = dbf.newDocumentBuilder();
// create a new XML document for the content
Document doc = db.newDocument();
Element root = doc.createElementNS(NAMESPACE, "content");
doc.appendChild(root);
and serialize it then the namespace won't be part of it when using Java
1.4 resp. it works with Java 1.5
Can anyone reproduce this problem resp. any idea why this is happening?
Thanks
Michi
--
Michael Wechner
Wyona - Open Source Content Management - Yanel, Yulup
http://www.wyona.com
michael.wechner at wyona.com, michi at apache.org
+41 44 272 91 61
More information about the Yanel-development
mailing list