Jump to content
Sign in to follow this  
radikaled

xml and schema validator

Recommended Posts

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?

Share this post


Link to post
Share on other sites

I don't think there's any way to tell if you're showing only the root of the Schema :) .

Share this post


Link to post
Share on other sites

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>

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...