export-0.1.xsd 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!--
  3. This is an XML Schema description of the format
  4. output by MediaWiki's Special:Export system.
  5. The canonical URL to the schema document is:
  6. http://www.mediawiki.org/xml/export-0.1.xsd
  7. Use the namespace:
  8. http://www.mediawiki.org/xml/export-0.1/
  9. -->
  10. <schema xmlns="http://www.w3.org/2001/XMLSchema"
  11. xmlns:mw="http://www.mediawiki.org/xml/export-0.1/"
  12. targetNamespace="http://www.mediawiki.org/xml/export-0.1/"
  13. elementFormDefault="qualified">
  14. <annotation>
  15. <documentation xml:lang="en">
  16. MediaWiki's page export format
  17. </documentation>
  18. </annotation>
  19. <!-- Need this to reference xml:lang -->
  20. <import namespace="http://www.w3.org/XML/1998/namespace"
  21. schemaLocation="http://www.w3.org/2001/xml.xsd"/>
  22. <!-- Our root element -->
  23. <element name="mediawiki" type="mw:MediaWikiType"/>
  24. <complexType name="MediaWikiType">
  25. <sequence>
  26. <element name="page" type="mw:PageType"
  27. minOccurs="0" maxOccurs="unbounded"/>
  28. </sequence>
  29. <attribute name="version" type="string" use="required"/>
  30. <attribute ref="xml:lang" use="required"/>
  31. </complexType>
  32. <complexType name="PageType">
  33. <sequence>
  34. <!-- Title in text form. (Using spaces, not underscores; with namespace ) -->
  35. <element name="title" type="string"/>
  36. <!-- optional page ID number -->
  37. <element name="id" type="positiveInteger" minOccurs="0"/>
  38. <!-- comma-separated list of string tokens, if present -->
  39. <element name="restrictions" type="string" minOccurs="0"/>
  40. <!-- Zero or more sets of revision data -->
  41. <element name="revision" type="mw:RevisionType"
  42. minOccurs="0" maxOccurs="unbounded"/>
  43. </sequence>
  44. </complexType>
  45. <complexType name="RevisionType">
  46. <sequence>
  47. <element name="id" type="positiveInteger" minOccurs="0"/>
  48. <element name="timestamp" type="dateTime"/>
  49. <element name="contributor" type="mw:ContributorType"/>
  50. <element name="minor" minOccurs="0" />
  51. <element name="comment" type="string" minOccurs="0"/>
  52. <element name="text" type="string"/>
  53. </sequence>
  54. </complexType>
  55. <complexType name="ContributorType">
  56. <sequence>
  57. <element name="username" type="string" minOccurs="0"/>
  58. <element name="id" type="positiveInteger" minOccurs="0" />
  59. <element name="ip" type="string" minOccurs="0"/>
  60. </sequence>
  61. </complexType>
  62. </schema>