Hi,
 
I am new to XML Schemas, I am learning now, I wrote an xml file and schema to validate that xml file. i applyed xsd on that, Still its not validating the xml and just displaying the xml text on browser, Please help me to resolve the issue
 
here is my XSD:
 
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
      targetNamespace="http://example.com">
  <xs:element name="person">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="familyName" type="xs:integer" />
        <xs:element name="firstName" type="xs:string" />
      <xs:sequence>
    <xs:complexType>
  <xs:element>
<xs:schema>
 
 
XML File
<foo:person xmlns:foo="http://example.com">
  <familyName> test </familyName>
  <firstName> Kohsuke </firstName>
</foo:person>
 
 
 
 
 
 
 
 
Regards
Satya