Hi, I am just trying out jibx and are a bit confused regarding what the binding xml file should look like.
I want create a simple example, but jibx-compiler complains: org.jibx.runtime.JiBXException: One or more <mapping> elements must be defined in <binding> By looking at the examples, I have created a binding file as below, however, the documentation [http://jibx.sourceforge.net/details/xml-summary.html] says that the mapping element can NOT have a value as a child... I am confused, can you guys help me out how to make this simple binding work? cheers! binding.xml <binding> <mapping name="customer" class="mock.Person" > <value name="firstname" field="firstName" /> <value name="lastname" field="lastName" /> </mapping> </binding> Person.java: package mock; public class Person { public String firstName; public String lastName; } person1.xml: <customer> <firstname>aName</firstname> <lastname>aLastName</lastname> </customer> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ jibx-users mailing list jibx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-users