On Wed May 25 2:38 , <[EMAIL PROTECTED]> sent:
Hi!
I'm receiving a ClassCastException when i'm trying to parse a VALID xml file.I'm sure the xmlbeans.jar is the right one and the schema and xml file are OK. PLease give me a clue. I pasted here a piece form xml file and xml schema
Code:
fr.xxx.yyy.zzz.RETURNDATADocument rd = fr.xxx.yyy.zzz.RETURNDATADocument.Factory
.parse(new File("xxxx.xml"));Schema:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:annotation>
<xsd:documentation xml:lang="en">
Results of Hotel Details request, for a given Hotel Code.
Any error messages in "MESSAGE" element with
text "Error" followed by the error description
</xsd:documentation>
</xsd:annotation>
<xsd:element name="RETURNDATA">
<xsd:complexType>
-----------XML:
<?
xml version='1.0' encoding='UTF-8'?><RETURNDATA type='HDR' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:noNamespaceSchemaLocation='http://xx.yy.zz/aaa/HotelDetailRequestV4Rcv.xsd'>
<MESSAGE>Details of the requested Hotel</MESSAGE> <DATA HOTEL_CODE='AUS' COUNTRY_CODE='AUS' CITY_CODE='SZG' PRINCIPAL_CODE='TRAVCO' BOARD_BASIS_CODE='BB' CATEGORY_CODE='HOT'> <HOTEL_NAME>Austrotel</HOTEL_NAME> <COUNTRY_NAME>AUS</COUNTRY_NAME>............
</DATA>
</RETURNDATA>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

