XML parsing error

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.

Post to Twitter Post to Delicious Post to Facebook Post to StumbleUpon

Related posts

  • Sorry, could not find any...
This entry was written by kai, posted on Tuesday May 16 2006 at 12:05 am, filed under Agent K on CF . Bookmark the permalink . Post a comment below or leave a trackback: Trackback URL.

Leave a Reply