Created
December 2, 2013 19:56
-
-
Save zverok/7757193 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="windows-1251"?> | |
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> | |
<xs:element name="message"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="author"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="nickname" type="xs:string" /> | |
<xs:element name="fullname" type="xs:string" /> | |
<xs:element name="sex" type="xs:string" /> | |
<xs:element name="birthDate" type="xs:dateTime" /> | |
<xs:element name="geoplace" type="xs:string" /> | |
<xs:element name="spam_expect" type="xs:unsignedByte" /> | |
<xs:element name="link" type="xs:string" /> | |
<xs:element name="user_interests" type="xs:string" /> | |
<xs:element name="likes_interests" type="xs:string" /> | |
<xs:element name="groups_interests" type="xs:string" /> | |
<xs:element name="education"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="school"> | |
<xs:complexType> | |
<xs:attribute name="name" type="xs:string" use="required" /> | |
<xs:attribute name="country" type="xs:string" use="optional" /> | |
<xs:attribute name="city" type="xs:string" use="optional" /> | |
<xs:attribute name="yearFrom" type="xs:unsignedShort" use="optional" /> | |
<xs:attribute name="yearTo" type="xs:unsignedShort" use="optional" /> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="university"> | |
<xs:complexType> | |
<xs:attribute name="name" type="xs:string" use="required" /> | |
<xs:attribute name="country" type="xs:string" use="optional" /> | |
<xs:attribute name="city" type="xs:string" use="optional" /> | |
<xs:attribute name="yearFrom" type="xs:unsignedShort" use="optional" /> | |
<xs:attribute name="yearTo" type="xs:unsignedShort" use="optional" /> | |
</xs:complexType> | |
</xs:element> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="readers"> | |
<xs:complexType> | |
<xs:simpleContent> | |
<xs:extension base="xs:string"> | |
<xs:attribute name="count" type="xs:unsignedByte" use="optional" /> | |
</xs:extension> | |
</xs:simpleContent> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="accounts"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element maxOccurs="unbounded" name="account"> | |
<xs:complexType> | |
<xs:attribute name="name" type="xs:string" use="required" /> | |
<xs:attribute name="link" type="xs:string" use="required" /> | |
</xs:complexType> | |
</xs:element> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="post"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="recorded" type="xs:dateTime" /> | |
<xs:element name="published" type="xs:dateTime" /> | |
<xs:element name="updated" type="xs:dateTime" /> | |
<xs:element name="link" type="xs:string" /> | |
<xs:element name="title" type="xs:string" /> | |
<xs:element name="body" type="xs:string" /> | |
<xs:element name="spam_expect" type="xs:unsignedByte" /> | |
<xs:element name="journal"> | |
<xs:complexType> | |
<xs:attribute name="name" type="xs:string" use="required" /> | |
<xs:attribute name="link" type="xs:string" use="required" /> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="tags" type="xs:string" /> | |
<xs:element name="likes"> | |
<xs:complexType> | |
<xs:simpleContent> | |
<xs:extension base="xs:string"> | |
<xs:attribute name="count" type="xs:unsignedByte" use="optional" /> | |
</xs:extension> | |
</xs:simpleContent> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="comments"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element maxOccurs="unbounded" name="comment"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="author"> | |
<xs:complexType> | |
<xs:attribute name="nickname" type="xs:string" use="required" /> | |
<xs:attribute name="link" type="xs:string" use="required" /> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="title" type="xs:string" /> | |
<xs:element name="body" type="xs:string" /> | |
<xs:element name="link" type="xs:string" /> | |
<xs:element name="published" type="xs:dateTime" /> | |
<xs:element name="updated" type="xs:dateTime" /> | |
<xs:element name="recorded" type="xs:dateTime" /> | |
<xs:element name="likes"> | |
<xs:complexType> | |
<xs:simpleContent> | |
<xs:extension base="xs:string"> | |
<xs:attribute name="count" type="xs:unsignedByte" use="optional" /> | |
</xs:extension> | |
</xs:simpleContent> | |
</xs:complexType> | |
</xs:element> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
</xs:schema> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment