[jdom-interest] empty xmlns

christopher.faulkner at ntlworld.com christopher.faulkner at ntlworld.com
Fri Jan 9 01:59:27 PST 2004


I have been using JDOM for a short while and am very happy.

I have come across a problem today

I want to produce something like this

xmlns="http://domain1/path1" xsi:schemaLocation="http://domain1/path http://domain1/path/MyFavourite.xsd" xsi:type="MyFavourite_body">


However, what I am getting is this in the MyFavourite element.

<MyFavourite xmlns="">

When I create MyFavourite with the Element constructor, I am not adding a Namespace or any type of attribute so why is it there ? Can it be removed ?



Email provided by http://www.ntlhome.com/

More information about the jdom-interest mailing list