Dennis Sosnoski wrote:
It looks like my test cases don't use the combination of elements with default namespaces+attributes not in any namespace. The test cases I *do* use currently are in build/test/extras of the distribution (contact0.xml, contact1.xml, contact2.xml, conteact3.xml). If you can modify one of the test cases to demonstrate the failure it should help me get this fixed.
Dear Dennis,
I have modified the sample. The two files in the appendix replace the corresponding files in build/test/extras.
However, I could not build and test them myself because I do not build JiBX or any of its related files. I actually do not use ant (bad software when knowing gmake). Still, I guess that the error will show when you make the samples. Note that you must unmarshal *AND* then marshall the created object to see the problem (do a full roundtrip).
Regards,
Falk
-- Dr. Falk Langhammer Living Pages Research GmbH Kolosseumstr. 1a D-80469 Munich, Germany mailto:[EMAIL PROTECTED] http://www.living-pages.de Phone +49 (89) 189 207-27 Fax +49 (89) 189 207-29 Mobil +49 (171) 79 39 667 mailto:[EMAIL PROTECTED] (urgent SMS with subject header) PGP public Key Id: 0xF7FBCA39
<!-- Basic mapping using the DomElementMapper to handle an arbitrary element stored as an Object --> <binding> <namespace uri="http://livis.com/xmlns/FormX" default="elements"/> <mapping name="contact" class="extras.DomContact0"> <value name="first-name" field="m_firstName"/> <value name="last-name" field="m_lastName"/> <value name="phone" field="m_phone"/> <structure field="m_information" usage="optional" marshaller="org.jibx.extras.DomElementMapper" unmarshaller="org.jibx.extras.DomElementMapper"/> </mapping> </binding>
<contact xmlns="http://livis.com/xmlns/FormX"> <first-name>Tom</first-name><last-name>Sawyer</last-name><phone>1-800-555-1212</phone> <info>some <b class="foo">info</b></info> </contact>
