Java Mailing List Archive

http://www.junlu.com/

Home » JDOM Projects »

[jdom-interest] cant achive creation of this xml tag with jdom

eial@cs.bgu.ac.il

2008-03-24

Replies: Find Java Web Hosting

Author LoginPost Reply

hello, I need to create this xml tag using jdom in java:
Code:

<stream:features>
  <bind xmlns="urn:ietf:params:xml:ns:xmpp­-bind" />
  <session xmlns="urn:ietf:params:xml:ns:xmpp­-session" />
</stream:features>


the closest I've been able to get is this:
Code:

<stream:features xmlns:stream="features">
  <bind xmlns="urn:ietf:params:xml:ns:xmpp-­bind" />
  <session xmlns="urn:ietf:params:xml:ns:xmpp-­session" />
</stream:features>

I've cant seems to remove the added xmlns attribute in the main.
how can I remove it, thanks.
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.