I'm having some trouble parsing an XML file with ColdFusion. I've double, triple-checked the file for the BOM, which doesn't exist.
The twist, the code only happens when I use <cfinvoke>
.
So, on index.cfm
<cfinvoke component='controller.me' method='ADQuery'>
</cfinvok开发者_运维问答e>
Controller/Me.cfc
<cffunction name='ADQuery' output='true'>
<cfset netinfoxml = XMLParse(ExpandPath('conf/netinfo.xml'))>
Then it all goes wrong. However, if I do it directly from index.cfm, and dump it. Then it's fine.
Any ideas?
Sorry, it's probably something incredibly trivial
maybe this will help, seems to be a pretty in depth description [and solution!] to your problem....
http://www.bennadel.com/blog/1206-Content-Is-Not-Allowed-In-Prolog-ColdFusion-XML-And-The-Byte-Order-Mark-BOM-.htm
If not, can you post the xml?
-sean
精彩评论