This is something I have never tried before.  We created an XML Schema 
to define XML documents we expect to receive from various entities.  
When we receive the document, we would like to validate it before 
processing it.  I think ColdFusion is up to this from reading the 
documentation, but we have not got anything working yet.

When we try and xmlParse() our test XML file against the XML schema we 
get the following error.  When we use a web based XML validation tool 
and feed it the same XML file and schema it validates just fine.

An error occured while parsing an XML document.
[Error] :2:6: cvc-elt.1: Cannot find the declaration of element 'pur'.

The error occurred in D:\playground\warren\ppur_file_import.cfm: line 57
55 :
56 :
57 : <cfset xmldoc = XmlParse(ExpandPath(filepath), true, 
ExpandPath(validator)) />
58 : <cfdump var="#xmldoc#">
59 : <cfabort>

Searching for the error has not provided me any useful hints.  Can 
anybody here?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:335273
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to