Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

XML schema with attributes

By: ralienpp on Mar 5th, 2012  |  syntax: XML  |  size: 1.00 KB  |  views: 50  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <xs:complexType name="MessageAbstractType" abstract="true">
  2.   <xs:sequence>
  3.     <xs:element name="AP_Info">
  4.       <xs:complexType>
  5.         <xs:attribute name="AP_ID" type="xs:anyURI" use="required" />
  6.         <xs:attribute name="AP_TransID" type="xs:NCName" use="required" />
  7.         <xs:attribute name="AP_PWD" type="xs:string" use="required" />
  8.         <xs:attribute name="Instant" type="xs:dateTime" use="required" />
  9.         <xs:attribute name="AP_URL" type="xs:anyURI" use="optional" />
  10.       </xs:complexType>
  11.     </xs:element>
  12.     <xs:element name="MSSP_Info">
  13.       <xs:complexType>
  14.         <xs:sequence>
  15.           <xs:element name="MSSP_ID" type="mss:MeshMemberType" />
  16.         </xs:sequence>
  17.         <xs:attribute name="Instant" type="xs:dateTime" use="optional" />
  18.       </xs:complexType>
  19.     </xs:element>
  20.   </xs:sequence>
  21.   <xs:attribute name="MajorVersion" type="xs:integer" use="required" />
  22.   <xs:attribute name="MinorVersion" type="xs:integer" use="required" />
  23. </xs:complexType>