company.two.xml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <sdo:datagraph xmlns:sdo="commonj.sdo" xmlns:ns1="company.xsd">
  2. <xsd>
  3. <schema targetNamespace="company.xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="company.xsd">
  4. <xsd:complexType name="EmployeeType">
  5. <xsd:attribute name="name" type="xsd:string" use="required"/>
  6. <xsd:attribute name="SN" type="xsd:string" use="required"/>
  7. <xsd:attribute name="manager" type="xsd:boolean" use="required"/>
  8. <xsd:attribute name="age" type="xsd:byte"/>
  9. </xsd:complexType>
  10. <xsd:complexType name="DepartmentType">
  11. <xsd:sequence>
  12. <xsd:element name="employees" type="tns:EmployeeType" maxOccurs="unbounded"/>
  13. </xsd:sequence>
  14. <xsd:attribute name="name" type="xsd:string" use="required"/>
  15. <xsd:attribute name="location" type="xsd:string" use="required"/>
  16. <xsd:attribute name="number" type="xsd:int" use="required"/>
  17. </xsd:complexType>
  18. <xsd:complexType name="CompanyType">
  19. <xsd:sequence>
  20. <xsd:element name="departments" type="tns:DepartmentType" maxOccurs="unbounded"/>
  21. </xsd:sequence>
  22. <xsd:attribute name="name" type="xsd:string" use="required"/>
  23. <xsd:attribute name="employeeOfTheMonth" type="xsd:string" use="required"/>
  24. </xsd:complexType>
  25. <xsd:element name="Company" type="tns:CompanyType"/>
  26. </schema>
  27. </xsd>
  28. <ns1:Company name="A Second Sample company" employeeOfTheMonth="Inoussa">
  29. <departments name="RAD Departement" location="Moon" number="2">
  30. <employees name="inoussa OUEDRAOGO" SN="1122334455667" manager="true" age="32"/>
  31. <employees name="SDO man" SN="867787667" manager="false" age="1"/>
  32. <employees name="FPC" SN="_e-('" manager="false" age="13"/>
  33. </departments>
  34. <departments name="Sales Departement" location="Mars" number="2">
  35. <employees name="wst man" SN="e&quot;'fsdfdf" manager="1" age="2"/>
  36. <employees name="azerty" SN="jkjk_e5679" manager="0" age="0"/>
  37. <employees name="qwerty" SN="_s-('" manager="0" age="0"/>
  38. </departments>
  39. </ns1:Company>
  40. <ns1:Company name="Work Company" employeeOfTheMonth="Assia">
  41. <departments name="OP Departement" location="Earth" number="2">
  42. <employees name="Assia" SN="123" manager="true" age="23"/>
  43. <employees name="AM" SN="455" manager="false" age="12"/>
  44. </departments>
  45. </ns1:Company>
  46. </sdo:datagraph>