Advertisement
Guest User

Untitled

a guest
May 20th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.02 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  3. <xs:element name="TimeCards">
  4. <xs:complexType>
  5. <xs:sequence>
  6. <xs:element name="EnterpriseDtls">
  7. <xs:complexType>
  8. <xs:sequence>
  9. <xs:element name="Img">
  10. <xs:complexType>
  11. <xs:attribute name="src" type="xs:string" use="required"/>
  12. </xs:complexType>
  13. </xs:element>
  14. </xs:sequence>
  15. <xs:attribute name="Enterprise_Name" type="xs:string" use="required"/>
  16. <xs:attribute name="Address" type="xs:string" use="required"/>
  17. </xs:complexType>
  18. </xs:element>
  19. <xs:element name="Projects">
  20. <xs:complexType>
  21. <xs:sequence>
  22. <xs:element name="Project">
  23. <xs:complexType>
  24. <xs:attribute name="name" type="xs:string" use="required"/>
  25. </xs:complexType>
  26. </xs:element>
  27. </xs:sequence>
  28. </xs:complexType>
  29. </xs:element>
  30. <xs:element name="Employees">
  31. <xs:complexType>
  32. <xs:sequence>
  33. <xs:element name="Employee">
  34. <xs:complexType>
  35. <xs:sequence>
  36. <xs:element name="Name" type="xs:string"/>
  37. <xs:element name="Manager" type="xs:string"/>
  38. <xs:element name="Belongs_to_dept" type="xs:string"/>
  39. <xs:element name="Dates_of_week">
  40. <xs:complexType>
  41. <xs:sequence>
  42. <xs:element name="Timesheets">
  43. <xs:complexType>
  44. <xs:sequence>
  45. <xs:element name="Timesheet">
  46. <xs:complexType>
  47. <xs:sequence>
  48. <xs:element name="Date" type="xs:string"/>
  49. <xs:element name="Start_Time" type="xs:string"/>
  50. <xs:element name="Finish_Time" type="xs:string"/>
  51. <xs:element name="Total_Break_Time">
  52. <xs:complexType>
  53. <xs:attribute name="unit" type="xs:string"/>
  54. </xs:complexType>
  55. </xs:element>
  56. <xs:element name="Regular_Hours" type="xs:string"/>
  57. <xs:element name="Overtime_Hours" type="xs:string"/>
  58. <xs:element name="Sick" type="xs:string"/>
  59. <xs:element name="Vacation" type="xs:string"/>
  60. <xs:element name="Holiday" type="xs:string"/>
  61. <xs:element name="Other">
  62. <xs:complexType>
  63. <xs:attribute name="type" type="xs:string"/>
  64. </xs:complexType>
  65. </xs:element>
  66. <xs:element name="Holiday" type="xs:string"/>
  67. </xs:sequence>
  68. </xs:complexType>
  69. </xs:element>
  70. </xs:sequence>
  71. </xs:complexType>
  72. </xs:element>
  73. <xs:element name="Rates_per_hour">
  74. <xs:complexType>
  75. <xs:sequence>
  76. <xs:element name="rate_per_regular_hrs" type="xs:float"/>
  77. <xs:element name="rate_per_overtime_hrs" type="xs:float"/>
  78. <xs:element name="rate_per_sick_hrs" type="xs:float"/>
  79. <xs:element name="rate_per_vacation_hrs" type="xs:flaot"/>
  80. <xs:element name="rate_per_holiday_hrs" type="xs:float"/>
  81. <xs:element name="rate_per_other_hrs" type="xs:float"/>
  82. </xs:sequence>
  83. <xs:attribute name="currency" type="xs:string"/>
  84. </xs:complexType>
  85. </xs:element>
  86. <xs:element name="All_Totalhours">
  87. <xs:complexType>
  88. <xs:sequence>
  89. <xs:element name="total_regular_hours" type="xs:integer"/>
  90. <xs:element name="total_overtime_hours" type="xs:integer"/>
  91. <xs:element name="total_sick_hours" type="xs:integer"/>
  92. <xs:element name="total_vacation_hours" type="xs:integer"/>
  93. <xs:element name="total_holiday_hours" type="xs:integer"/>
  94. <xs:element name="total_other_hours" type="xs:integer"/>
  95. </xs:sequence>
  96. <xs:attribute name="hours" type="xs:integer" use="required"/>
  97. </xs:complexType>
  98. </xs:element>
  99. <xs:element name="Tasks">
  100. <xs:complexType>
  101. <xs:sequence>
  102. <xs:element name="Task">
  103. <xs:complexType>
  104. <xs:attribute name="NameOfTask" type="xs:string" use="required"/>
  105. <xs:attribute name="Project" type="xs:string" use="required"/>
  106. </xs:complexType>
  107. </xs:element>
  108. </xs:sequence>
  109. </xs:complexType>
  110. </xs:element>
  111. </xs:sequence>
  112. </xs:complexType>
  113. </xs:element>
  114. </xs:sequence>
  115. <xs:attribute name="ID" type="xs:integer" use="required"/>
  116. <xs:attribute name="type" type="xs:string"/>
  117. </xs:complexType>
  118. </xs:element>
  119. </xs:sequence>
  120. </xs:complexType>
  121. </xs:element>
  122. </xs:sequence>
  123. </xs:complexType>
  124. </xs:element>
  125. </xs:schema>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement