I'm trying to get JiBX to unmarshal some XML documents and it works fine so
long as the document root elements contain the attribute
'xmlns="http://...";' (which seems to match up with the namespace generated
in the binding.xml by bindgen), like this:

<remotecfg xmlns="http://gov.blm/remote";>
      <remote name="remote1">
            ...

However if the XML doesn't contain that xmlns attribute my app fails on
unmarshalling with the error 'No unmarshaller for element "remotecfg"'. I
can't expect the users of my application to put that into every XML file
they create, and in any case the JiBX documentation shows plenty of
examples without this attribute. There must be a way to get rid of it,
perhaps with a change to the binding.xml or else in my code that calls the
context to unmarshal the doc. What do I need to do to fix this?

--Pete


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to