You either need to add VERSION as an element in the
http://www.monternet.com/dsmp/schemas/ namespace or use a namespace prefix
with the http://www.monternet.com/dsmp/schemas/ namespace.  It is not clear
what you are trying to accomplish.  What namespace do you want the
SyncOrderRelationReq and VERSION elements to be in?

If you want to put VERSION in the http://www.monternet.com/dsmp/schemas/
namespace then you could do this:

Element el_version = el_sync_order_relation_req.addElement(
   new QName("VERSION", new Namespace("",
"http://www.monternet.com/dsmp/schemas/";)));


-----Original Message-----
From: snowtank snowtank [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 13, 2006 9:55 PM
To: dom4j-user@lists.sourceforge.net
Subject: [dom4j-user] Hi everyone I have a question about xmlns! help me!
Thank you!


I make a xml file with dom4j.
the content is :
<SyncOrderRelationReq xmlns="http://www.monternet.com/dsmp/schemas/";>
      <VERSION xmlns="">1.5.0</VERSION>
the code is:
el_sync_order_relation_req.addNamespace("","http://www.monternet.com/dsmp/sc
hemas/");
                Element el_version =
el_sync_order_relation_req.addElement("VERSION");

now I don't want to appear xmlns="" in <VERSION>
how should I eidt my code.thank you!!


_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user


_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to