If you vote you can be DZone's BFF! Login and vote now.
By danwilson
via bennadel.com
Submitted: Apr 22 2008 / 12:21
The other day, Dustin Chesterman asked me about an XML parsing error he was seeing. He was getting the "Content is not allowed in Prolog" XmlParse() error. I have blogged about this error before - it is an exception that is thrown when you try to parse XML that has data or white space prior to the encoding declaration or root node. This is often caused when an XML feed does not trim it's return value. Usually, passing the content through ColdFusion's Trim() method before calling XmlParse() does the trick; however, in Dustin's case, Trim() didn't seem to be helpin
SaveShareSend
Tags: coldfusion, frameworks, xml
Add your comment