Validating an XML document to a schema using ColdFusion

2010-07-12 Thread Ian Skinner
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

Re: Validating an XML document to a schema using ColdFusion

2010-07-12 Thread Ian Skinner
Small sample files that produce the error. XML Schema |?xml version=1.0 encoding=iso-8859-1? xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; xs:element name=pur xs:complexType xs:sequence xs:element name=File type=xs:string

Re: Validating an XML document to a schema using ColdFusion

2010-07-12 Thread denstar
This worked on railo: cfsavecontent variable=xs?xml version=1.0 encoding=iso-8859-1? xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; xs:element name=pur xs:complexType xs:sequence xs:element name=File type=xs:string minOccurs=1 maxOccurs=1/