_company.xml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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:complexType>
  9. <xsd:complexType name="DepartmentType">
  10. <xsd:sequence>
  11. <xsd:element name="employees" type="tns:EmployeeType" maxOccurs="unbounded"/>
  12. </xsd:sequence>
  13. <xsd:attribute name="name" type="xsd:string" use="required"/>
  14. <xsd:attribute name="location" type="xsd:string" use="required"/>
  15. <xsd:attribute name="number" type="xsd:int" use="required"/>
  16. </xsd:complexType>
  17. <xsd:complexType name="CompanyType">
  18. <xsd:sequence>
  19. <xsd:element name="departments" type="tns:DepartmentType" maxOccurs="unbounded"/>
  20. </xsd:sequence>
  21. <xsd:attribute name="name" type="xsd:string" use="required"/>
  22. <xsd:attribute name="employeeOfTheMonth" type="xsd:string" use="required"/>
  23. </xsd:complexType>
  24. </schema>
  25. </xsd>
  26. <ns1:CompanyType name="A Sample company" employeeOfTheMonth="Inoussa">
  27. <departments name="RAD Departement" location="Moon" number="2">
  28. <employees name="inoussa OUEDRAOGO" SN="1122334455667" manager="1"/>
  29. <employees name="SDO man" SN="867787667" manager="0"/>
  30. <employees name="FPC" SN="_e-('" manager="0"/>
  31. </departments>
  32. <departments name="Sales Departement" location="Mars" number="2">
  33. <employees name="wst man" SN="e&quot;'fsdfdf" manager="1"/>
  34. <employees name="azerty" SN="jkjk_e5679" manager="0"/>
  35. <employees name="qwerty" SN="_s-('" manager="0"/>
  36. </departments>
  37. </ns1:CompanyType>
  38. </sdo:datagraph>