• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Castor Un-Marshalling Error

 
Dave Schick
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FYI -- I fixed this problem by using FileReader instead of StringReader to read in the input xml file. Thank you anyway.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic