Hi !

 

I used Castor Framework to generate automatically classes and Descriptor to marshal and unmarshall XML data. To be more precise, I managed dictionaries and the class model used to manage them is pretty complex. My problem is the following : when I try to Unmarshall data, the parser used by Castor (xerces) doesn’t load XML standard entites (ex : à ). Here’s the message returned when I try upload the file attached at the end of the message :

 

������� START FILLER DATA LOADING

������� Empty Base

������� Load GeneLight or a Sublayer in an Empty Base

org.xml.sax.SAXException: Parsing Error : The entity "iuml" was referenced, but not declared.

Line : 34

Column : 20

{file: [not available]; line: 34; column: 20}

java.lang.NullPointerException

������� at com.epop.kb.mem.Mem.populateC(Mem.java:470)

������� at com.epop.kb.lex.AllLexicons.addGeneLight(AllLexicons.java:72)

������� at com.epop.kb.io.Filler.fill(Filler.java:159)

������� at com.epop.kb.io.Filler.main(Filler.java:127)

 

At the end of the message is the file I try to load. You may notice that the character ‘�’ is handled by the parser – while it’s not an XML entity – when ï is not (my test…)…

 

Is there a trick I don’t know to load all this properly ?

 

Thanks a lot,

Morgane.

 

 

<?xml version='1.0' encoding='ISO-8859-1'?>

<GeneLight

����� id="GFRPA"

����� language="Fran�ais"

����� version="1.7.0_0.51"

����� property="Lexique standard fran�ais"

����� certification="certification en cours"

����� integrity="YES">

����� <GeneLightMorpho

����� ����� id="GFRR22">

����� ����� <MuS

����� ����� ����� id="GFRMS82951"

����� ����� ����� naming="rodeuse"

����� ����� ����� attestation="/ISLJF"

����� ����� ����� combls="ISLJF"

����� ����� ����� gramcat="NOUN"

����� ����� ����� gramsubcat="COMMON"

����� ����� ����� autonomy="YES"

����� ����� ����� synulist="GFRSY112000"

����� ����� ����� ginp="PG111"

����� ����� ����� spelling="rodeuse"></MuS>

����� ����� <MuS

����� ����� ����� id="GFRMS82739a"

����� ����� ����� naming="goy"

����� ����� ����� attestation="/HO/"

����� ����� ����� gramcat="NOUN"

����� ����� ����� gramsubcat="COMMON"

����� ����� ����� autonomy="YES"

����� ����� ����� synulist="GFRSY99400a"

����� ����� ����� ginp="PG243C"

����� ����� ����� spelling="goy"></MuS>

����� ����� <MuS

����� ����� ����� id="GFRMS82739b"

����� ����� ����� naming="go&iuml;"

����� ����� ����� attestation="/HO/"

����� ����� ����� gramcat="NOUN"

����� ����� ����� gramsubcat="COMMON"

����� ����� ����� autonomy="YES"

����� ����� ����� synulist="GFRSY99400b"

����� ����� ����� ginp="PG242C"

����� ����� ����� spelling="go&iuml;"></MuS>

����� ����� <MuS

����� ����� ����� id="GFRMS78831"

����� ����� ����� naming="m&ecirc;le"

����� ����� ����� combls="ISLMC"

����� ����� ����� autonomy="NO"

����� ����� ����� ginp="PGvide"

����� ����� ����� spelling="m&ecirc;le"></MuS>

����� ����� <GInP

����� ����� ����� id="PGvide"

����� ����� ����� example="vivement"

����� ����� ����� combmfciflist="GFRCC82339">

����� ����� </GInP>

����� ����� <GInP

����� ����� ����� id="PG111"

����� ����� ����� example="vache"

����� ����� ����� combmfciflist="GFRCC82321 GFRCC82323">

����� ����� </GInP>

����� ����� <GInP

����� ����� ����� id="PG243C"

����� ����� ����� example="goy_fem"

����� ����� ����� combmfciflist="GFRCC82325 GFRCC82327">

����� ����� </GInP>

����� ����� <GInP

����� ����� ����� id="PG242C"

����� ����� ����� example="go&iuml;_fem"

����� ����� ����� combmfciflist="GFRCC82329 GFRCC82332">

����� ����� </GInP>

����� </GeneLightMorpho>

</GeneLight>

Reply via email to