Jump to content

  • Log In with Google      Sign In   
  • Create Account





LittleBugs, update 2

Posted by Sean T. McBeth, 13 July 2007 · 82 views

Here is the XML Schema for the bug list:

<?xml version="1.0" encoding="utf-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.seanmcbeth.com"
targetNamespace="http://www.seanmcbeth.com">

<xsd:element name="BugXML">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="UserList" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="ProjectList" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>

<xsd:attribute name="userID" type="xsd:integer" default="1337"/>

<xsd:element name="User">
<xsd:complexType>
<xsd:attribute name="name" type="xsd:string" use="required"/>
<xsd:attribute ref="userID" use="required"/>
<xsd:attribute name="contact" type="xsd:string"/>
</xsd:complexType>
</xsd:element>

<xsd:element name="UserList">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="User" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>

<xsd:complexType name="UserAssignmentType">
<xsd:attribute ref="userID" use="required"/>
</xsd:complexType>

<xsd:element name="UserAssignment" type="UserAssignmentType"/>

<xsd:element name="UserAssignmentList">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="UserAssignment" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>

<xsd:complexType name="DescriptionType">
<xsd:sequence>
<xsd:element name="Name" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="false"/>
<xsd:element name="Summary" type="xsd:string" minOccurs="1" maxOccurs="1" nillable="false"/>
<xsd:element name="Creator" minOccurs="1" maxOccurs="1" nillable="false" type="UserAssignmentType"/>
</xsd:sequence>
<xsd:attribute name="creationDate" type="xsd:string" use="required"/>
</xsd:complexType>

<xsd:element name="Bug">
<xsd:complexType>
<xsd:choice>
<xsd:element name="Description" type="DescriptionType" minOccurs="1" maxOccurs="1" nillable="false"/>
<xsd:element ref="UserAssignmentList" minOccurs="0" maxOccurs="1"/>
</xsd:choice>
<xsd:attribute name="id" type="xsd:integer" use="required"/>
<xsd:attribute name="resolvedDate" type="xsd:string" use="optional"/>
</xsd:complexType>
</xsd:element>

<xsd:element name="BugList">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="Bug" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>

<xsd:element name="Project">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Description" type="DescriptionType" minOccurs="1" maxOccurs="1" nillable="false"/>
<xsd:element ref="UserAssignmentList" minOccurs="1" maxOccurs="1"/>
<xsd:element ref="BugList" minOccurs="1" maxOccurs="1"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>

<xsd:element name="ProjectList">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="Project" minOccurs="1" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>

</xsd:schema>



That should work for now.




Latest Visitors

PARTNERS