XML parsing error

by kai on 16/05/2006



Ever ended up with the following error?

“An error occured while Parsing an XML document.
The processing instruction target matching “[xX][mM][lL]” is not allowed.”

It happened to me today when I was trying to parse a highly complex chunk of XML with XMLParse(). Eventually I found out that it came down to basically a SAXParseException and it was reasonably easy to solve by changing my code from:

<cfsavecontent…>
<?xml…>

to

<cfsavecontent…><?xml…>

Basically there shouldn’t be anything before the opening XML tag, then it’s supposed to work.

Comments on this entry are closed.

Previous post:

Next post: