Re: cant achive creation of this xml tag with jdom

Rolf <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
JDom is right.

You can't have an undeclared namespace declaration:

http://www.w3.org/TR/2006/REC-xml-names-20060816/#ns-qualnames

Qualified name stream:features must be associated with a namespace 
declaration.

You must declare the namespace as specified in:

http://www.w3.org/TR/2006/REC-xml-names-20060816/#ns-decl

Rolf

[email protected] wrote:
>
> 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/[email protected]

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.