Hi,
I'm trying to get jibx working, but I always get this exception:
"Binding binding.xml is unusable because of validation errors"
I think I'm calling the compiler wrong.
I have following directory structure:
jibxtest
├ binding.xml
├ src //Directory with java sources
├ build
├ classes //Directory with java classes
├ data //Directory with xml file (foo.xml)
├ lib //Directory with jibx libs
My basic call was "java -jar .\lib\jibx-bind.jar binding.xml" I tried it in
several directories, but I always get the exception.
What did I wrong?
The XML file looks like:
<foo name="something">
<content>abc</content>
<a><b>as</b></a>
</foo>
The destination class looks like:
package org.domain;
public class Foo {
String content;
String b;
}
And the binding.xml like:
<binding>
<mapping name="foo" class="org.domain.Foo">
<structure name="a">
<value name="b" field="b"/>
</structure>
<value name="content" field="content"/>
</mapping>
</binding>
regards
wolle
--
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
jibx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users