You might try:

element.setAttributeNS("http://www.w3.org/2000/xmlns/";, "xmlns",
"jabber:iq:register");

-- 
Joe Hildebrand

 

> -----Original Message-----
> From: Mark Derricutt [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 11, 2004 8:05 PM
> To: [EMAIL PROTECTED]
> Subject: [jdev] Marbles - Java Transport Framework
> 
> I have some code thats been using the marbles[1] framework 
> for a simple transport, and I've just picked the code up 
> again to actually do something proper with it for work, and 
> hit a snag.
> 
> I'm trying to add registration support, but when I create the 
> XML to send back to the client, I can't get the xmlns entry 
> in the XML.
> 
> My test code shows this is due to the XML parser being used, however: 
> 
> 1. When using xerces the XML generated includes the xmlns, 
> but marbles silently fails to connect to the jabber using.
> 
> 2. When using saxon/aelfred the XML generated includes the 
> xmlns, but marbles fails to connect to the jabber server with 
> a socket exception trying to deserialize some XML.
> 
> Is the author/maintainer of Marbles anywhere on here?  The 
> project shows no files released, so I'm building from CVS, 
> and doesn't list a project admin other than Peter Millard, 
> who I'm thinking isn't actually doing this project ( he's not 
> currently on jdev to ask ).
> 
> Anyone able to help or offer some sanity?
> 
> Are there any other transport frameworks in java I could use?
> 
> [1] http://www.jabberstudio.org/projects/marbles/project/view.php
> 
> _______________________________________________
> jdev mailing list
> [EMAIL PROTECTED]
> https://jabberstudio.org/mailman/listinfo/jdev
> 
_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
https://jabberstudio.org/mailman/listinfo/jdev

Reply via email to