This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Castor Un-Marshalling Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Castor Un-Marshalling Error" Watch "Castor Un-Marshalling Error" New topic
Author

Castor Un-Marshalling Error

Dave Schick
Greenhorn

Joined: Sep 01, 2006
Posts: 13
I'm getting the following error when I attempt to un-marshall an xml document using Castor: Parsing Error : Content is not allowed in prolog.

I checked and there are no spaces before my opening <xml tag. The xml is well-formed as well.

Has anyone experienced this error before and can you share your experiences with me? I'll provide code samples if anyone responds...

Thank you


Dave Schick (SCJP 5.0, SCWCD)
Dave Schick
Greenhorn

Joined: Sep 01, 2006
Posts: 13
FYI -- I fixed this problem by using FileReader instead of StringReader to read in the input xml file. Thank you anyway.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Castor Un-Marshalling Error
 
Similar Threads
XML to Java object using JAXB
Is this a good idea for pseudo O/R mapping?
JAXB unmarshalling
Design considerations
I hate to use a bad word here