Hello,
imagine i've created an xml file like this:
<IDENT>
<DATEINAME>filename</DATEINAME>
<VERSION-TYP>1234</VERSION-TYP>
<VERSION-INHALT/>
<DATUM/>
<BESCHREIBUNG/>
<CNT-CHECKSUMME>85ad24d2b89c10cfd80003eebd8cd03d6d49dbbb</
CNT-CHECKSUMME>
</IDENT>
my description in the mapping.xml is like this:
<mapping name="XYZ" class="Yxz">
<structure name="IDENT" field="ident">
<value name="DATEINAME" field="dateiname"/>
<value name="VERSION-TYP" field="versionTyp"/>
</structure>
...
</mapping>
i'm getting an exception while marshalling the xml-file like this:
org.jibx.runtime.JiBXException: Expected "IDENT" end tag, found
"VERSION-INHALT" start tag (line 8, col 20)
at
org.jibx.runtime.impl.UnmarshallingContext.parsePastCurrentEndTag(
UnmarshallingContext.java:793)
at Zdc.JiBX_mapping_unmarshal_1_0(Zdc.java)
at JiBX_mappingZdc_access.unmarshal()
at org.jibx.runtime.impl.UnmarshallingContext.unmarshalElement(
UnmarshallingContext.java:2538)
at org.jibx.runtime.impl.UnmarshallingContext.unmarshalDocument(
UnmarshallingContext.java:2681)
at Main.main(Main.java:25)
Normaly, this is an feature of xml that you can parse OVER unknown
attributes (maybe you are not interestest in these information). Why does
jibx not ignore unknown attributes?
Thanks for your help.-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-users