Hi
Im facing a strange error while unmarshalling.
It gives me java.net.UnknownHostException: castor.exolab.org when I try
to do unmarshalling. Its a simple java bean.
The content to parse is below
Ex:
<root>
<VAL nombre="ANTENA 3" fecha_hora="2006-03-10T17:35:00" ultimo="22,67"
dif="-0,06" dif_porcent="-0,26 %" max="22,75" min="22,5"
volumen="291033" maximo_12_meses="24" minimo_12_meses="13,99"/>
<VAL nombre="ACCIONA" fecha_hora="2006-03-10T17:35:00" ultimo="114,35"
dif="1,95" dif_porcent="1,73 %" max="114,4" min="111,4" volumen="154649"
maximo_12_meses="120" minimo_12_meses="65"/>
</root>
This is how I have mapped.
<?xml version="1.0" encoding="UTF-8">
<!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Object Mapping DTD Version
1.0//EN" "http://castor.exolab.org/mapping.dtd">
<mapping>
<description>A mapping file for Terra Quotations of
companies</description>
<class
name="com.lightsurf.alertscore.channelqueue.terrabusiness.TerraQuotationOfCompaniesList">
<map-to xml="root"/>
<field name="quotationItems"
type="com.lightsurf.alertscore.channelqueue.terrabusiness.TerraQuotationOfCompaniesBean"
collection="arraylist">
<bind-xml name="VAL"/>
</field>
</class>
<class
name="com.lightsurf.alertscore.channelqueue.terrabusiness.TerraQuotationOfCompaniesBean">
<field name="quotationName" type="string">
<bind-xml name="nombre" node="attribute"/>
</field>
<field name="minOf12Months" type="string">
<bind-xml name="minimo_12_meses" node="attribute"/>
</field>
</class>
</mapping>
Any thoughts on the above would just be great.
Arun
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------