You have multiple options:
foo.addNamespace("xsi", "...");
foo.addAttribute("xsi:noNamespaceSchemaLocation", "...");
I would prefer the following option:
Namespace xsi = Namespace.get( "xsi","...");
foo.add(xsi);
foo.addAttribute(QName.get("noNamespaceSchemaLocation", xsi), "...");
Regards,
Edwin
--
http://www.edankert.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
dom4j-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dom4j-user