xsd.go 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. package main
  2. var XSD = `<?xml version="1.0" standalone="yes"?>
  3. <xs:schema id="NewDataSet" xmlns=""
  4. targetNamespace="http://qianqiusoft.com/developer"
  5. xmlns:tns="http://qianqiusoft.com/developer"
  6. xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
  7. <xs:element name="application">
  8. <xs:complexType>
  9. <xs:sequence>
  10. <xs:element name="controllers" minOccurs="0" maxOccurs="unbounded">
  11. <xs:complexType>
  12. <xs:sequence>
  13. <xs:element name="controller" minOccurs="0" maxOccurs="unbounded">
  14. <xs:complexType>
  15. <xs:sequence>
  16. <xs:element name="api" minOccurs="0" maxOccurs="unbounded">
  17. <xs:complexType>
  18. <xs:sequence>
  19. <xs:element name="param" minOccurs="0" maxOccurs="unbounded">
  20. <xs:complexType>
  21. <xs:attribute name="name" type="xs:string" />
  22. <xs:attribute name="ref" type="xs:string" />
  23. <xs:attribute name="desc" type="xs:string" />
  24. <xs:attribute name="type" type="xs:string" />
  25. </xs:complexType>
  26. </xs:element>
  27. <xs:element name="return" minOccurs="0" maxOccurs="unbounded">
  28. <xs:complexType>
  29. <xs:sequence>
  30. <xs:element name="success" minOccurs="0" maxOccurs="unbounded">
  31. <xs:complexType>
  32. <xs:attribute name="ref" type="xs:string" />
  33. </xs:complexType>
  34. </xs:element>
  35. <xs:element name="failure" minOccurs="0" maxOccurs="unbounded">
  36. <xs:complexType>
  37. <xs:attribute name="ref" type="xs:string" />
  38. </xs:complexType>
  39. </xs:element>
  40. </xs:sequence>
  41. </xs:complexType>
  42. </xs:element>
  43. </xs:sequence>
  44. <xs:attribute name="name" type="xs:string" />
  45. <xs:attribute name="desc" type="xs:string" />
  46. <xs:attribute name="method" type="xs:string" />
  47. <xs:attribute name="function" type="xs:string" />
  48. <xs:attribute name="table" type="xs:string" />
  49. </xs:complexType>
  50. </xs:element>
  51. </xs:sequence>
  52. <xs:attribute name="name" type="xs:string" />
  53. <xs:attribute name="desc" type="xs:string" />
  54. <xs:attribute name="skip_login" type="xs:string" />
  55. </xs:complexType>
  56. </xs:element>
  57. </xs:sequence>
  58. </xs:complexType>
  59. </xs:element>
  60. <xs:element name="beans" minOccurs="0" maxOccurs="unbounded">
  61. <xs:complexType>
  62. <xs:sequence>
  63. <xs:element name="bean" minOccurs="0" maxOccurs="unbounded">
  64. <xs:complexType>
  65. <xs:sequence>
  66. <xs:element name="prop" minOccurs="0" maxOccurs="unbounded">
  67. <xs:complexType>
  68. <xs:attribute name="name" type="xs:string" />
  69. <xs:attribute name="caption" type="xs:string" />
  70. <xs:attribute name="type" type="xs:string" />
  71. </xs:complexType>
  72. </xs:element>
  73. </xs:sequence>
  74. <xs:attribute name="name" type="xs:string" />
  75. <xs:attribute name="desc" type="xs:string" />
  76. <xs:attribute name="inher" type="xs:string" />
  77. </xs:complexType>
  78. </xs:element>
  79. </xs:sequence>
  80. </xs:complexType>
  81. </xs:element>
  82. <xs:element name="tables" minOccurs="0" maxOccurs="unbounded">
  83. <xs:complexType>
  84. <xs:sequence>
  85. <xs:element name="table" minOccurs="0" maxOccurs="unbounded">
  86. <xs:complexType>
  87. <xs:sequence>
  88. <xs:element name="column" minOccurs="0" maxOccurs="unbounded">
  89. <xs:complexType>
  90. <xs:sequence>
  91. <xs:element name="auto" minOccurs="0" maxOccurs="unbounded">
  92. <xs:complexType>
  93. <xs:attribute name="value" type="xs:string" />
  94. <xs:attribute name="update" type="xs:string" />
  95. </xs:complexType>
  96. </xs:element>
  97. </xs:sequence>
  98. <xs:attribute name="isNull" type="xs:string" />
  99. <xs:attribute name="isPK" type="xs:string" />
  100. <xs:attribute name="name" type="xs:string" />
  101. <xs:attribute name="caption" type="xs:string" />
  102. <xs:attribute name="dbtype" type="xs:string" />
  103. <xs:attribute name="type" type="xs:string" />
  104. <xs:attribute name="size" type="xs:string" />
  105. </xs:complexType>
  106. </xs:element>
  107. </xs:sequence>
  108. <xs:attribute name="name" type="xs:string" />
  109. <xs:attribute name="desc" type="xs:string" />
  110. </xs:complexType>
  111. </xs:element>
  112. </xs:sequence>
  113. </xs:complexType>
  114. </xs:element>
  115. </xs:sequence>
  116. <xs:attribute name="name" type="xs:string" />
  117. <xs:attribute name="desc" type="xs:string" />
  118. <xs:attribute name="packagename" type="xs:string" />
  119. </xs:complexType>
  120. </xs:element>
  121. <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
  122. <xs:complexType>
  123. <xs:choice minOccurs="0" maxOccurs="unbounded">
  124. <xs:element ref="application" />
  125. </xs:choice>
  126. </xs:complexType>
  127. </xs:element>
  128. </xs:schema>`