can't validate my xml against xsd

Jakorz

New Member
Please tell me suggestion where to correct...I tried much, but couldn't validate on http://xmlvalidator.new-studio.org/my xml is\[code\] <?xml version="1.0" standalone="yes"?><timeofownership><user name="Sana Smith"><location type="Appartment"> <articles> <pid>AA</pid> <product>Laptop</product> <OwnFor>30 Days 3 Months 4 Years</OwnFor> </articles></location></user><user name="Rooney Mara"><location type="House"> <articles> <pid>DD</pid> <product>iPhone</product> <OwnFor>10 Days 4 Months 1 Years</OwnFor> </articles> </location> </user> <user name="Rooney Mara"> <location type="House"> <articles> <pid>TT</pid> <product>iPad</product> <OwnFor>10 Days 4 Months 0 Years</OwnFor> </articles> </location> </user> <user name="Sana Smith"> <location type="House"> <articles> <pid>BB</pid> <product>Desktop</product> <OwnFor>5 Days 3 Months 3 Years</OwnFor> </articles></location> </user> <user name="Peter Parker"> <location type="House"> <articles> <pid>CC</pid> <product>Fridge</product> <OwnFor>30 Days 7 Months 0 Years</OwnFor> </articles> </location> </user> <user name="Mia Chu"> <location type="Appartment"> <articles> <pid>ZZ</pid> <product>PS3</product> <OwnFor>30 Days 2 Months 0 Years</OwnFor> </articles> </location> </user> </timeofownership>\[/code\]And the Schema XSD is-\[code\]<?xml version="1.0" encoding="utf-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="timeofownership" > <xs:complexType> <xs:sequence> <xs:element name="user" minOccurs="0" maxOccurs="unbounded"> <xs:complexType> <xs:element name="location"> <xs:complexType> <xs:element name="articles"> <xs:complexType> <xs:sequence> <xs:element name="pid" type="xs:string"/> <xs:element name="product" type="xs:string"/> <xs:element name="OwnFor" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> <xs:attribute name="type" type="xs.string"/> </xs:complexType> </xs:element> <xs:attribute name="name" type="xs:string"/> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element></xs:schema>\[/code\]Please give me soution for this.thanks in anticipation.
 
Back
Top