can you please post the content of the file,a s it seems like you have data in front of the xml prolog ... which make the XML you are about to un-/marshall invalid.
Thanks
Werner
--Original Message Text---
From: janarthanankesavan
Date: 9 Jul 2004 09:18:00 -0000
Hi all,
I try to load my mapping xml file like this:
map.loadMapping("C:\\Test.xml");
But, i get an error like below.
How to get rid of this error?
In the mapping file i am having nested classes.
error:
*********
org.xml.sax.SAXException: Parsing Error : Content is not allowed in prolog.
Line : 1
Column : 1
at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1186)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:605)
at org.exolab.castor.mapping.Mapping.loadMappingInternal(Mapping.java:532)
at org.exolab.castor.mapping.Mapping.loadMappingInternal(Mapping.java:480)
at org.exolab.castor.mapping.Mapping.loadMapping(Mapping.java:407)
at com.pgs.pip.tma.TMAXMLTest.main(TMAXMLTest.java:51)
org.exolab.castor.mapping.MappingException: Nested error: org.xml.sax.SAXException: Parsing Error : Content is not allowed in prolog.
Line : 1
Column : 1
Reg
Jana
Life is not a bed of roses!
----------------------------
With warmest regards,
T.K.Janarthanan.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
