Title: org.xml.sax.SAXParseException: Content is not allowed in prolog

hi,

I am connecting to an axis web service fine, but within it a class is parsing a local xml file using xerces / sax,
tomcat has logged the SAXParseException and the reason is "Content is not allowed in prolog".

I have googled the error message and have tried all types of solutions mentioned but to no avail.

I stripped down the xml to a most basic format to convince myself there was something in the xml the
parser was not liking,

<?xml version="1.0" encoding="iso-8859-1"?><book><test>this book</test></book>,

but the same error occurs.

The strange thing is, in another application I am using xerces / sax to process xml sent to it from a remote
web service and it works fine.

I'm just wondering could axis be interfering on some higher level?
All methods implemented within my CustomContentHandler have been left blank, so in theory it should
have just quietly ran doing nothing.

The request and response have been relayed through tcpmon and results where what was expected,
so the web service continues doing what it needs to even though the parser failed to parse the xml.

Has anyone had experience of this error.

John.

Reply via email to