I am trying to retrieve data from my xml file into a coldfusion web service, the xml is valid but when the web service attempts to search the xml it throws back an error - An error occured while Parsing an XML document - not the most useful of errors so I am a bit stumped, here is my web service:
[CODE=VB]<cfcomponent>
<cffunction name="getDetail s"
access="remote" ...
User Profile
Collapse
-
Searching an XML document with Coldfusion
-
Morag started a topic An error occured while Parsing an XML document: Content is not allowed in prologin ColdfusionAn error occured while Parsing an XML document: Content is not allowed in prolog
I need to retrieve some data from an xml document using a web server, it's not working so I took out everything that was not necessary and put everything back line by line until I hit the problem, I found out which line was causing the problem and so I've created a cfm to test it and it gets the error " Content is not allowed in prolog." Here's the test file:
Code:<cfsilent> <cfset xmlFileAddress = Expandpath("XMLcoursework.xml")>
No activity results to display
Show More