«« Next » « Previous
«« Next » « Previous

Link Details

If you vote you can be DZone's BFF! Login and vote now.
Link 77121 thumbnail

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
  • 2
  • 0
  • 218
  • 24

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (2)



Voters Against This Link (0)