Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Simple Moxy / JAXB Question

Hey,

I am looking at creating a XMPP client using EclipseLink Moxy. I have
converted a XSD that is provided by the XMPP community into POJOs
(http://xmpp.org/schemas/). Currently I read in this XML:

<stream:stream xmlns:stream="http://etherx.jabber.org/streams"; id="4AE5694A"
xmlns="jabber:client" from="shigeoka.com" />

When I print Java object to the screen I then get:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<stream xmlns="http://etherx.jabber.org/streams"; xmlns:ns2="jabber:client"
xmlns:ns3="urn:ietf:params:xml:ns:xmpp-stanzas"
xmlns:ns4="jabber:server:dialback" xmlns:ns5="jabber:server"
xmlns:ns6="urn:ietf:params:xml:ns:xmpp-streams" id="4AE5694A"
from="shigeoka.com"/>

>From what I can see, there are two problems. The namespaces are incorrect
and default data is being applied. What is the best approach for solving
these problems?

Best Regards,
Smokie
-- 
View this message in context: http://www.nabble.com/Simple-Moxy---JAXB-Question-tp26085030p26085030.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top