<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc = "http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://livedocs.adobe.com/">
	<title>LiveDocs Comments - coldfusion - 7 - htmldocs - 00000674.htm</title>	
		<link>http://livedocs.adobe.com/</link>
		<description>Macromedia LiveDocs - online documentation with user feedback.</description>
		<copyright>Copyright 2009, Macromedia, Inc.</copyright>
		<dc:date>2009-11-25T20:43:58</dc:date>
		<dc:language>en-us</dc:language>
		<items>
			<rdf:Seq>
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000674.htm#65916" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000674.htm#42365" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000674.htm#32668" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000674.htm#32577" />
				<rdf:li rdf:resource="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000674.htm#30331" />
			</rdf:Seq>
		</items>
	</channel>
	
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000674.htm#65916">
		<title>coldfusion/7/htmldocs/00000674.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000674.htm#65916</link>
		<description>It seems if you do not specify the xsi:noNamespaceSchemaLocation in your document to be validated, XmlValidate works, but it always gives you the same error when the document doesn't validate:&lt;br /&gt;&lt;br /&gt;&quot;Cannot find the declaration of element '[my root element]'.&quot;&lt;br /&gt;&lt;br /&gt;Some explanation of why this is so, and the significance of the xsi declaration would be helpful.  The docs seem to indicate you can leave off all namespace declarations, if you are passing in the validator parameter.  &lt;br /&gt;&lt;br /&gt;I tested this using the above documents, removing the xsi declaration and changing the name of the 'name' element in the sample doc to 'names'.</description>
		<dc:creator>wizardwatson</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2007-04-26T10:37:55</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000674.htm#42365">
		<title>coldfusion/7/htmldocs/00000674.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000674.htm#42365</link>
		<description>If a validator argument is not supplied, the XML document must contain either  !DOCTYPE or a schema declaration.  &lt;br /&gt;&lt;br /&gt;If a validator argument is supplied, any !DOCTYPE / schema declaration in the XML doc is ignored,  but the XML file is expected to have at least a minimum empty DTD, or schema.</description>
		<dc:creator>ASandstrom</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-11-15T11:10:48</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000674.htm#32668">
		<title>coldfusion/7/htmldocs/00000674.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000674.htm#32668</link>
		<description>In response to dboberg@mail.fdn.com&lt;br&gt;:&lt;br&gt;You are correct. It should be warnings.&lt;br&gt;&lt;br&gt;In addition, the example CFM file should refer to the returned structure as #myResults.status# instead of #results.status#, so the code should read:&lt;br&gt;&lt;br&gt;&lt;cfset&lt;br&gt;myResults=XMLValidate(&quot;C:\CFusionMX7\wwwroot\examples\custorder.xml&quot;, &lt;br&gt;&quot;http://localhost:8500/examples/custorder.xsd&quot;)&gt;&lt;br&gt;&lt;cfoutput&gt;&lt;br&gt;Did custorder.xml validate against custorder.xsd? #myResults.status#&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;/cfoutput&gt;&lt;br&gt;Dump of myResults structure returned by XMLValidate&lt;br&gt;&lt;br&gt;&lt;cfdump var=&quot;#myResults#&quot;&gt;</description>
		<dc:creator>ASandstrom</dc:creator>
		<dc:type>1 1</dc:type>
		<dc:date>2005-04-29T10:58:10</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000674.htm#32577">
		<title>coldfusion/7/htmldocs/00000674.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000674.htm#32577</link>
		<description>The documentation for RETURN values states &quot;Warning :  An array containing any validator warnings. A well-formed and valid document can produce warning messages. &quot;&lt;br /&gt;&lt;br /&gt;This should read &quot;Warnings&quot;.  Note the &quot;s&quot; for plurality.  Using the singular &quot;Warning&quot; throws an error.</description>
		<dc:creator></dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-04-28T08:07:09</dc:date>
	</item>
	<item rdf:about="http://livedocs.adobe.com/coldfusion/7/htmldocs/00000674.htm#30331">
		<title>coldfusion/7/htmldocs/00000674.htm</title>
		<link>http://livedocs.adobe.com/coldfusion/7/htmldocs/00000674.htm#30331</link>
		<description>In example code:&lt;br /&gt;&lt;br /&gt;results.status  should be  myResults.status</description>
		<dc:creator>Firechaser</dc:creator>
		<dc:type>0 0</dc:type>
		<dc:date>2005-03-24T06:00:34</dc:date>
	</item>
	</rdf:RDF>

