radikaled Posted April 5, 2006 Share Posted April 5, 2006 i'm having trouble getting the validator (http://apps.gotdotnet.com/xmltools/xsdvalidator/default.aspx) to validate my xml document using the schema i've made. The xsd file validates, but the validator says 'Warning at (3,2): Could not find schema information for the element'. Here's the xml document: <?xml version="1.0" encoding="ISO-8859-1"?><appskin xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns="http://www.9squared.com"xsi:schemaLocation="http://www.9squared.com 9ML_schema.xsd"><resources> <resource id="main.xml" version="1.0" lid="0"/></resources></appskin> This is a snippet from the xsd file: <?xml version="1.0" encoding="ISO-8859-1" ?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"xmlns="http://www.9squared.com"targetNamespace="http://www.9squared.com"> what am i doing wrong? Link to comment Share on other sites More sharing options...
boen_robot Posted April 5, 2006 Share Posted April 5, 2006 I don't think there's any way to tell if you're showing only the root of the Schema . Link to comment Share on other sites More sharing options...
radikaled Posted April 5, 2006 Author Share Posted April 5, 2006 here's the whole XSD file <?xml version="1.0" encoding="ISO-8859-1" ?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"xmlns="http://www.9squared.com"targetNamespace="http://www.9squared.com"><xs:simpleType name="stringType"> <xs:restriction base="xs:string" /></xs:simpleType><xs:simpleType name="decType"> <xs:restriction base="xs:decimal" /></xs:simpleType><xs:simpleType name="intType"> <xs:restriction base="xs:nonNegativeInteger"/></xs:simpleType><xs:complexType name="resourceType"> <xs:attribute name="id" type="stringType" use="required" /> <xs:attribute name="version" type="decType" use="required" /> <xs:attribute name="lid" type="intType" use="required" /></xs:complexType><xs:complexType name="resourcesType"> <xs:sequence> <xs:element name="resource" type="resourceType" maxOccurs="unbounded" /> </xs:sequence></xs:complexType><xs:complexType name="appskinType"> <xs:sequence> <xs:any maxOccurs="unbounded"/> </xs:sequence></xs:complexType><!-- definitions of elements --><xs:element name="appskin" type="appskinType"/><xs:element name="reources" type="resourcesType" /></xs:schema> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now