radikaled
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by radikaled
-
-
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>
-
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?
schema for complex xml
in Schema
Posted
i'm new at this, but i believe if you do something like this:
that should allow multiple elements in any order.see this topic:http://w3schools.invisionzone.com/index.php?showtopic=1828