Schema publicResults_state.xsd


schema location:  C:\DotNet\Development\TallyClient\Ecq.TallyClient.root\Ecq.TallyClient\Ecq.TallyClient\xml\publicResults_state.xsd
attribute form default:  unqualified
element form default:  qualified
 
Elements 
election 


element election
diagram PublicResults_p1.png
properties
content complex
children generationDateTime config parties districts totalBallots totalFormalVotes totalInformalVotes totalVotes
attributes
Name  Type  Use  Default  Fixed  annotation
idxs:unsignedLongrequired      
namexs:stringrequired      
typexs:stringrequired      
statexs:stringrequired      
datexs:daterequired      
statusxs:stringrequired      
enrolmentxs:unsignedLongrequired      
percentRollCountedxs:decimalrequired      
boothCountxs:unsignedIntrequired      
candidateCountxs:unsignedIntrequired      
partyCountxs:unsignedIntrequired      
xmlUpdateIntervalxs:unsignedLongrequired      
source <xs:element name="election">
 
<xs:complexType>
   
<xs:sequence>
     
<xs:element name="generationDateTime" type="xs:dateTime"/>
     
<xs:element name="config">
       
<xs:complexType>
         
<xs:sequence>
           
<xs:element name="includeInformalCountFlag" type="xs:string"/>
           
<xs:element name="includePercentageFlag" type="xs:string"/>
           
<xs:element name="includeBoothsInFlag" type="xs:string"/>
           
<xs:element name="includeCandidateNameAndPartyFlag" type="xs:string"/>
           
<xs:element name="includeDistrictNameFlag" type="xs:string"/>
         
</xs:sequence>
       
</xs:complexType>
     
</xs:element>
     
<xs:element name="parties">
       
<xs:complexType>
         
<xs:sequence>
           
<xs:element name="party" maxOccurs="unbounded">
             
<xs:complexType>
               
<xs:sequence>
                 
<xs:element name="formalVotes">
                   
<xs:complexType>
                     
<xs:sequence>
                       
<xs:element name="percentage" type="xs:decimal"/>
                       
<xs:element name="count" type="xs:unsignedLong"/>
                     
</xs:sequence>
                   
</xs:complexType>
                 
</xs:element>
               
</xs:sequence>
               
<xs:attribute name="code" type="xs:string" use="required"/>
               
<xs:attribute name="name" type="xs:string" use="required"/>
             
</xs:complexType>
           
</xs:element>
         
</xs:sequence>
       
</xs:complexType>
     
</xs:element>
     
<xs:element name="districts">
       
<xs:complexType>
         
<xs:sequence>
           
<xs:element name="district" maxOccurs="unbounded">
             
<xs:complexType>
               
<xs:sequence>
                 
<xs:element name="formalVotes">
                   
<xs:complexType>
                     
<xs:sequence>
                       
<xs:element name="percentage" type="xs:decimal"/>
                       
<xs:element name="count" type="xs:unsignedLong"/>
                     
</xs:sequence>
                   
</xs:complexType>
                 
</xs:element>
                 
<xs:element name="informalVotes">
                   
<xs:complexType>
                     
<xs:sequence>
                       
<xs:element name="percentage" type="xs:decimal"/>
                       
<xs:element name="count" type="xs:unsignedLong"/>
                     
</xs:sequence>
                   
</xs:complexType>
                 
</xs:element>
                 
<xs:element name="totalVotes" type="xs:unsignedLong"/>
                 
<xs:element name="totalBallots" type="xs:unsignedLong"/>
                 
<xs:element name="numElectedCandidates" type="xs:unsignedInt"/>
                 
<xs:element name="candidates">
                   
<xs:complexType>
                     
<xs:sequence>
                       
<xs:element name="candidate" maxOccurs="unbounded">
                         
<xs:complexType>
                           
<xs:sequence>
                             
<xs:element name="surname" type="xs:string"/>
                             
<xs:element name="givenNames" type="xs:string"/>
                             
<xs:element name="primaryVotes">
                               
<xs:complexType>
                                 
<xs:sequence>
                                   
<xs:element name="percentage" type="xs:decimal"/>
                                   
<xs:element name="count" type="xs:unsignedLong"/>
                                 
</xs:sequence>
                               
</xs:complexType>
                             
</xs:element>
                             
<xs:element name="n2cpVotes" minOccurs="0">
                               
<xs:complexType>
                                 
<xs:sequence>
                                   
<xs:element name="percentage" type="xs:decimal"/>
                                   
<xs:element name="count" type="xs:unsignedLong"/>
                                 
</xs:sequence>
                               
</xs:complexType>
                             
</xs:element>
                           
</xs:sequence>
                           
<xs:attribute name="ballotOrderNumber" type="xs:unsignedInt" use="required"/>
                           
<xs:attribute name="ballotName" type="xs:string" use="required"/>
                           
<xs:attribute name="party" type="xs:string" use="required"/>
                           
<xs:attribute name="sitting" type="xs:string" use="required"/>
                           
<xs:attribute name="gender" type="xs:string" use="required"/>
                         
</xs:complexType>
                       
</xs:element>
                     
</xs:sequence>
                     
<xs:attribute name="count" type="xs:unsignedInt" use="required"/>
                   
</xs:complexType>
                 
</xs:element>
                 
<xs:element name="booths">
                   
<xs:complexType>
                     
<xs:sequence>
                       
<xs:element name="booth" maxOccurs="unbounded">
                         
<xs:complexType>
                           
<xs:sequence>
                             
<xs:element name="ballots" type="xs:unsignedLong"/>
                             
<xs:element name="formalVotes" type="xs:unsignedLong"/>
                             
<xs:element name="informalVotes" type="xs:unsignedLong"/>
                             
<xs:element name="totalVotes" type="xs:unsignedLong"/>
                             
<xs:element name="boothCandidates">
                               
<xs:complexType>
                                 
<xs:sequence>
                                   
<xs:element name="boothCandidate" maxOccurs="unbounded">
                                     
<xs:complexType>
                                       
<xs:sequence>
                                         
<xs:element name="primaryVotes" type="xs:unsignedLong"/>
                                         
<xs:element name="n2cpVotes" type="xs:unsignedLong" minOccurs="0"/>
                                       
</xs:sequence>
                                       
<xs:attribute name="ballotOrderNumber" type="xs:unsignedInt" use="required"/>
                                     
</xs:complexType>
                                   
</xs:element>
                                 
</xs:sequence>
                               
</xs:complexType>
                             
</xs:element>
                           
</xs:sequence>
                           
<xs:attribute name="id" type="xs:unsignedLong" use="required"/>
                           
<xs:attribute name="name" type="xs:string" use="required"/>
                           
<xs:attribute name="in" type="xs:string" use="required"/>
                           
<xs:attribute name="typeCode" type="xs:string" use="required"/>
                           
<xs:attribute name="typeDescription" type="xs:string" use="required"/>
                         
</xs:complexType>
                       
</xs:element>
                     
</xs:sequence>
                     
<xs:attribute name="boothsInCount" type="xs:unsignedInt" use="required"/>
                     
<xs:attribute name="boothsCount" type="xs:unsignedInt" use="required"/>
                     
<xs:attribute name="notionalBoothsInCount" type="xs:unsignedInt" use="required"/>
                   
</xs:complexType>
                 
</xs:element>
               
</xs:sequence>
               
<xs:attribute name="number" type="xs:unsignedInt" use="required"/>
               
<xs:attribute name="name" type="xs:string" use="required"/>
               
<xs:attribute name="lastUpdated" type="xs:dateTime"/>
               
<xs:attribute name="final" type="xs:string" use="required"/>
               
<xs:attribute name="enrolment" type="xs:unsignedLong" use="required"/>
               
<xs:attribute name="percentRollCounted" type="xs:decimal" use="required"/>
               
<xs:attribute name="declaredBallotName" type="xs:string"/>
               
<xs:attribute name="declaredPartyCode" type="xs:string"/>
             
</xs:complexType>
           
</xs:element>
         
</xs:sequence>
       
</xs:complexType>
     
</xs:element>
     
<xs:element name="totalBallots" type="xs:unsignedLong"/>
     
<xs:element name="totalFormalVotes" type="xs:unsignedLong"/>
     
<xs:element name="totalInformalVotes" type="xs:unsignedLong"/>
     
<xs:element name="totalVotes" type="xs:unsignedLong"/>
   
</xs:sequence>
   
<xs:attribute name="id" type="xs:unsignedLong" use="required"/>
   
<xs:attribute name="name" type="xs:string" use="required"/>
   
<xs:attribute name="type" type="xs:string" use="required"/>
   
<xs:attribute name="state" type="xs:string" use="required"/>
   
<xs:attribute name="date" type="xs:date" use="required"/>
   
<xs:attribute name="status" type="xs:string" use="required"/>
   
<xs:attribute name="enrolment" type="xs:unsignedLong" use="required"/>
   
<xs:attribute name="percentRollCounted" type="xs:decimal" use="required"/>
   
<xs:attribute name="boothCount" type="xs:unsignedInt" use="required"/>
   
<xs:attribute name="candidateCount" type="xs:unsignedInt" use="required"/>
   
<xs:attribute name="partyCount" type="xs:unsignedInt" use="required"/>
   
<xs:attribute name="xmlUpdateInterval" type="xs:unsignedLong" use="required"/>
 
</xs:complexType>
</xs:element>

attribute election/@id
type xs:unsignedLong
properties
isRef 0
use required
source <xs:attribute name="id" type="xs:unsignedLong" use="required"/>

attribute election/@name
type xs:string
properties
isRef 0
use required
source <xs:attribute name="name" type="xs:string" use="required"/>

attribute election/@type
type xs:string
properties
isRef 0
use required
source <xs:attribute name="type" type="xs:string" use="required"/>

attribute election/@state
type xs:string
properties
isRef 0
use required
source <xs:attribute name="state" type="xs:string" use="required"/>

attribute election/@date
type xs:date
properties
isRef 0
use required
source <xs:attribute name="date" type="xs:date" use="required"/>

attribute election/@status
type xs:string
properties
isRef 0
use required
source <xs:attribute name="status" type="xs:string" use="required"/>

attribute election/@enrolment
type xs:unsignedLong
properties
isRef 0
use required
source <xs:attribute name="enrolment" type="xs:unsignedLong" use="required"/>

attribute election/@percentRollCounted
type xs:decimal
properties
isRef 0
use required
source <xs:attribute name="percentRollCounted" type="xs:decimal" use="required"/>

attribute election/@boothCount
type xs:unsignedInt
properties
isRef 0
use required
source <xs:attribute name="boothCount" type="xs:unsignedInt" use="required"/>

attribute election/@candidateCount
type xs:unsignedInt
properties
isRef 0
use required
source <xs:attribute name="candidateCount" type="xs:unsignedInt" use="required"/>

attribute election/@partyCount
type xs:unsignedInt
properties
isRef 0
use required
source <xs:attribute name="partyCount" type="xs:unsignedInt" use="required"/>

attribute election/@xmlUpdateInterval
type xs:unsignedLong
properties
isRef 0
use required
source <xs:attribute name="xmlUpdateInterval" type="xs:unsignedLong" use="required"/>

element election/generationDateTime
diagram PublicResults_p2.png
type xs:dateTime
properties
isRef 0
content simple
source <xs:element name="generationDateTime" type="xs:dateTime"/>

element election/config
diagram PublicResults_p3.png
properties
isRef 0
content complex
children includeInformalCountFlag includePercentageFlag includeBoothsInFlag includeCandidateNameAndPartyFlag includeDistrictNameFlag
source <xs:element name="config">
 
<xs:complexType>
   
<xs:sequence>
     
<xs:element name="includeInformalCountFlag" type="xs:string"/>
     
<xs:element name="includePercentageFlag" type="xs:string"/>
     
<xs:element name="includeBoothsInFlag" type="xs:string"/>
     
<xs:element name="includeCandidateNameAndPartyFlag" type="xs:string"/>
     
<xs:element name="includeDistrictNameFlag" type="xs:string"/>
   
</xs:sequence>
 
</xs:complexType>
</xs:element>

element election/config/includeInformalCountFlag
diagram PublicResults_p4.png
type xs:string
properties
isRef 0
content simple
source <xs:element name="includeInformalCountFlag" type="xs:string"/>

element election/config/includePercentageFlag
diagram PublicResults_p5.png
type xs:string
properties
isRef 0
content simple
source <xs:element name="includePercentageFlag" type="xs:string"/>

element election/config/includeBoothsInFlag
diagram PublicResults_p6.png
type xs:string
properties
isRef 0
content simple
source <xs:element name="includeBoothsInFlag" type="xs:string"/>

element election/config/includeCandidateNameAndPartyFlag
diagram PublicResults_p7.png
type xs:string
properties
isRef 0
content simple
source <xs:element name="includeCandidateNameAndPartyFlag" type="xs:string"/>

element election/config/includeDistrictNameFlag
diagram PublicResults_p8.png
type xs:string
properties
isRef 0
content simple
source <xs:element name="includeDistrictNameFlag" type="xs:string"/>

element election/parties
diagram PublicResults_p9.png
properties
isRef 0
content complex
children party
source <xs:element name="parties">
 
<xs:complexType>
   
<xs:sequence>
     
<xs:element name="party" maxOccurs="unbounded">
       
<xs:complexType>
         
<xs:sequence>
           
<xs:element name="formalVotes">
             
<xs:complexType>
               
<xs:sequence>
                 
<xs:element name="percentage" type="xs:decimal"/>
                 
<xs:element name="count" type="xs:unsignedLong"/>
               
</xs:sequence>
             
</xs:complexType>
           
</xs:element>
         
</xs:sequence>
         
<xs:attribute name="code" type="xs:string" use="required"/>
         
<xs:attribute name="name" type="xs:string" use="required"/>
       
</xs:complexType>
     
</xs:element>
   
</xs:sequence>
 
</xs:complexType>
</xs:element>

element election/parties/party
diagram PublicResults_p10.png
properties
isRef 0
minOcc 1
maxOcc unbounded
content complex
children formalVotes
attributes
Name  Type  Use  Default  Fixed  annotation
codexs:stringrequired      
namexs:stringrequired      
source <xs:element name="party" maxOccurs="unbounded">
 
<xs:complexType>
   
<xs:sequence>
     
<xs:element name="formalVotes">
       
<xs:complexType>
         
<xs:sequence>
           
<xs:element name="percentage" type="xs:decimal"/>
           
<xs:element name="count" type="xs:unsignedLong"/>
         
</xs:sequence>
       
</xs:complexType>
     
</xs:element>
   
</xs:sequence>
   
<xs:attribute name="code" type="xs:string" use="required"/>
   
<xs:attribute name="name" type="xs:string" use="required"/>
 
</xs:complexType>
</xs:element>

attribute election/parties/party/@code
type xs:string
properties
isRef 0
use required
source <xs:attribute name="code" type="xs:string" use="required"/>

attribute election/parties/party/@name
type xs:string
properties
isRef 0
use required
source <xs:attribute name="name" type="xs:string" use="required"/>

element election/parties/party/formalVotes
diagram PublicResults_p11.png
properties
isRef 0
content complex
children percentage count
source <xs:element name="formalVotes">
 
<xs:complexType>
   
<xs:sequence>
     
<xs:element name="percentage" type="xs:decimal"/>
     
<xs:element name="count" type="xs:unsignedLong"/>
   
</xs:sequence>
 
</xs:complexType>
</xs:element>

element election/parties/party/formalVotes/percentage
diagram PublicResults_p12.png
type xs:decimal
properties
isRef 0
content simple
source <xs:element name="percentage" type="xs:decimal"/>

element election/parties/party/formalVotes/count
diagram PublicResults_p13.png
type xs:unsignedLong
properties
isRef 0
content simple
source <xs:element name="count" type="xs:unsignedLong"/>

element election/districts
diagram PublicResults_p14.png
properties
isRef 0
content complex
children district
source <xs:element name="districts">
 
<xs:complexType>
   
<xs:sequence>
     
<xs:element name="district" maxOccurs="unbounded">
       
<xs:complexType>
         
<xs:sequence>
           
<xs:element name="formalVotes">
             
<xs:complexType>
               
<xs:sequence>
                 
<xs:element name="percentage" type="xs:decimal"/>
                 
<xs:element name="count" type="xs:unsignedLong"/>
               
</xs:sequence>
             
</xs:complexType>
           
</xs:element>
           
<xs:element name="informalVotes">
             
<xs:complexType>
               
<xs:sequence>
                 
<xs:element name="percentage" type="xs:decimal"/>
                 
<xs:element name="count" type="xs:unsignedLong"/>
               
</xs:sequence>
             
</xs:complexType>
           
</xs:element>
           
<xs:element name="totalVotes" type="xs:unsignedLong"/>
           
<xs:element name="totalBallots" type="xs:unsignedLong"/>
           
<xs:element name="numElectedCandidates" type="xs:unsignedInt"/>
           
<xs:element name="candidates">
             
<xs:complexType>
               
<xs:sequence>
                 
<xs:element name="candidate" maxOccurs="unbounded">
                   
<xs:complexType>
                     
<xs:sequence>
                       
<xs:element name="surname" type="xs:string"/>
                       
<xs:element name="givenNames" type="xs:string"/>
                       
<xs:element name="primaryVotes">
                         
<xs:complexType>
                           
<xs:sequence>
                             
<xs:element name="percentage" type="xs:decimal"/>
                             
<xs:element name="count" type="xs:unsignedLong"/>
                           
</xs:sequence>
                         
</xs:complexType>
                       
</xs:element>
                       
<xs:element name="n2cpVotes" minOccurs="0">
                         
<xs:complexType>
                           
<xs:sequence>
                             
<xs:element name="percentage" type="xs:decimal"/>
                             
<xs:element name="count" type="xs:unsignedLong"/>
                           
</xs:sequence>
                         
</xs:complexType>
                       
</xs:element>
                     
</xs:sequence>
                     
<xs:attribute name="ballotOrderNumber" type="xs:unsignedInt" use="required"/>
                     
<xs:attribute name="ballotName" type="xs:string" use="required"/>
                     
<xs:attribute name="party" type="xs:string" use="required"/>
                     
<xs:attribute name="sitting" type="xs:string" use="required"/>
                     
<xs:attribute name="gender" type="xs:string" use="required"/>
                   
</xs:complexType>
                 
</xs:element>
               
</xs:sequence>
               
<xs:attribute name="count" type="xs:unsignedInt" use="required"/>
             
</xs:complexType>
           
</xs:element>
           
<xs:element name="booths">
             
<xs:complexType>
               
<xs:sequence>
                 
<xs:element name="booth" maxOccurs="unbounded">
                   
<xs:complexType>
                     
<xs:sequence>
                       
<xs:element name="ballots" type="xs:unsignedLong"/>
                       
<xs:element name="formalVotes" type="xs:unsignedLong"/>
                       
<xs:element name="informalVotes" type="xs:unsignedLong"/>
                       
<xs:element name="totalVotes" type="xs:unsignedLong"/>
                       
<xs:element name="boothCandidates">
                         
<xs:complexType>
                           
<xs:sequence>
                             
<xs:element name="boothCandidate" maxOccurs="unbounded">
                               
<xs:complexType>
                                 
<xs:sequence>
                                   
<xs:element name="primaryVotes" type="xs:unsignedLong"/>
                                   
<xs:element name="n2cpVotes" type="xs:unsignedLong" minOccurs="0"/>
                                 
</xs:sequence>
                                 
<xs:attribute name="ballotOrderNumber" type="xs:unsignedInt" use="required"/>
                               
</xs:complexType>
                             
</xs:element>
                           
</xs:sequence>
                         
</xs:complexType>
                       
</xs:element>
                     
</xs:sequence>
                     
<xs:attribute name="id" type="xs:unsignedLong" use="required"/>
                     
<xs:attribute name="name" type="xs:string" use="required"/>
                     
<xs:attribute name="in" type="xs:string" use="required"/>
                     
<xs:attribute name="typeCode" type="xs:string" use="required"/>
                     
<xs:attribute name="typeDescription" type="xs:string" use="required"/>
                   
</xs:complexType>
                 
</xs:element>
               
</xs:sequence>
               
<xs:attribute name="boothsInCount" type="xs:unsignedInt" use="required"/>
               
<xs:attribute name="boothsCount" type="xs:unsignedInt" use="required"/>
               
<xs:attribute name="notionalBoothsInCount" type="xs:unsignedInt" use="required"/>
             
</xs:complexType>
           
</xs:element>
         
</xs:sequence>
         
<xs:attribute name="number" type="xs:unsignedInt" use="required"/>
         
<xs:attribute name="name" type="xs:string" use="required"/>
         
<xs:attribute name="lastUpdated" type="xs:dateTime"/>
         
<xs:attribute name="final" type="xs:string" use="required"/>
         
<xs:attribute name="enrolment" type="xs:unsignedLong" use="required"/>
         
<xs:attribute name="percentRollCounted" type="xs:decimal" use="required"/>
         
<xs:attribute name="declaredBallotName" type="xs:string"/>
         
<xs:attribute name="declaredPartyCode" type="xs:string"/>
       
</xs:complexType>
     
</xs:element>
   
</xs:sequence>
 
</xs:complexType>
</xs:element>

element election/districts/district
diagram PublicResults_p15.png
properties
isRef 0
minOcc 1
maxOcc unbounded
content complex
children formalVotes informalVotes totalVotes totalBallots numElectedCandidates candidates booths
attributes
Name  Type  Use  Default  Fixed  annotation
numberxs:unsignedIntrequired      
namexs:stringrequired      
lastUpdatedxs:dateTime      
finalxs:stringrequired      
enrolmentxs:unsignedLongrequired      
percentRollCountedxs:decimalrequired      
declaredBallotNamexs:string      
declaredPartyCodexs:string      
source <xs:element name="district" maxOccurs="unbounded">
 
<xs:complexType>
   
<xs:sequence>
     
<xs:element name="formalVotes">
       
<xs:complexType>
         
<xs:sequence>
           
<xs:element name="percentage" type="xs:decimal"/>
           
<xs:element name="count" type="xs:unsignedLong"/>
         
</xs:sequence>
       
</xs:complexType>
     
</xs:element>
     
<xs:element name="informalVotes">
       
<xs:complexType>
         
<xs:sequence>
           
<xs:element name="percentage" type="xs:decimal"/>
           
<xs:element name="count" type="xs:unsignedLong"/>
         
</xs:sequence>
       
</xs:complexType>
     
</xs:element>
     
<xs:element name="totalVotes" type="xs:unsignedLong"/>
     
<xs:element name="totalBallots" type="xs:unsignedLong"/>
     
<xs:element name="numElectedCandidates" type="xs:unsignedInt"/>
     
<xs:element name="candidates">
       
<xs:complexType>
         
<xs:sequence>
           
<xs:element name="candidate" maxOccurs="unbounded">
             
<xs:complexType>
               
<xs:sequence>
                 
<xs:element name="surname" type="xs:string"/>
                 
<xs:element name="givenNames" type="xs:string"/>
                 
<xs:element name="primaryVotes">
                   
<xs:complexType>
                     
<xs:sequence>
                       
<xs:element name="percentage" type="xs:decimal"/>
                       
<xs:element name="count" type="xs:unsignedLong"/>
                     
</xs:sequence>
                   
</xs:complexType>
                 
</xs:element>
                 
<xs:element name="n2cpVotes" minOccurs="0">
                   
<xs:complexType>
                     
<xs:sequence>
                       
<xs:element name="percentage" type="xs:decimal"/>
                       
<xs:element name="count" type="xs:unsignedLong"/>
                     
</xs:sequence>
                   
</xs:complexType>
                 
</xs:element>
               
</xs:sequence>
               
<xs:attribute name="ballotOrderNumber" type="xs:unsignedInt" use="required"/>
               
<xs:attribute name="ballotName" type="xs:string" use="required"/>
               
<xs:attribute name="party" type="xs:string" use="required"/>
               
<xs:attribute name="sitting" type="xs:string" use="required"/>
               
<xs:attribute name="gender" type="xs:string" use="required"/>
             
</xs:complexType>
           
</xs:element>
         
</xs:sequence>
         
<xs:attribute name="count" type="xs:unsignedInt" use="required"/>
       
</xs:complexType>
     
</xs:element>
     
<xs:element name="booths">
       
<xs:complexType>
         
<xs:sequence>
           
<xs:element name="booth" maxOccurs="unbounded">
             
<xs:complexType>
               
<xs:sequence>
                 
<xs:element name="ballots" type="xs:unsignedLong"/>
                 
<xs:element name="formalVotes" type="xs:unsignedLong"/>
                 
<xs:element name="informalVotes" type="xs:unsignedLong"/>
                 
<xs:element name="totalVotes" type="xs:unsignedLong"/>
                 
<xs:element name="boothCandidates">
                   
<xs:complexType>
                     
<xs:sequence>
                       
<xs:element name="boothCandidate" maxOccurs="unbounded">
                         
<xs:complexType>
                           
<xs:sequence>
                             
<xs:element name="primaryVotes" type="xs:unsignedLong"/>
                             
<xs:element name="n2cpVotes" type="xs:unsignedLong" minOccurs="0"/>
                           
</xs:sequence>
                           
<xs:attribute name="ballotOrderNumber" type="xs:unsignedInt" use="required"/>
                         
</xs:complexType>
                       
</xs:element>
                     
</xs:sequence>
                   
</xs:complexType>
                 
</xs:element>
               
</xs:sequence>
               
<xs:attribute name="id" type="xs:unsignedLong" use="required"/>
               
<xs:attribute name="name" type="xs:string" use="required"/>
               
<xs:attribute name="in" type="xs:string" use="required"/>
               
<xs:attribute name="typeCode" type="xs:string" use="required"/>
               
<xs:attribute name="typeDescription" type="xs:string" use="required"/>
             
</xs:complexType>
           
</xs:element>
         
</xs:sequence>
         
<xs:attribute name="boothsInCount" type="xs:unsignedInt" use="required"/>
         
<xs:attribute name="boothsCount" type="xs:unsignedInt" use="required"/>
         
<xs:attribute name="notionalBoothsInCount" type="xs:unsignedInt" use="required"/>
       
</xs:complexType>
     
</xs:element>
   
</xs:sequence>
   
<xs:attribute name="number" type="xs:unsignedInt" use="required"/>
   
<xs:attribute name="name" type="xs:string" use="required"/>
   
<xs:attribute name="lastUpdated" type="xs:dateTime"/>
   
<xs:attribute name="final" type="xs:string" use="required"/>
   
<xs:attribute name="enrolment" type="xs:unsignedLong" use="required"/>
   
<xs:attribute name="percentRollCounted" type="xs:decimal" use="required"/>
   
<xs:attribute name="declaredBallotName" type="xs:string"/>
   
<xs:attribute name="declaredPartyCode" type="xs:string"/>
 
</xs:complexType>
</xs:element>

attribute election/districts/district/@number
type xs:unsignedInt
properties
isRef 0
use required
source <xs:attribute name="number" type="xs:unsignedInt" use="required"/>

attribute election/districts/district/@name
type xs:string
properties
isRef 0
use required
source <xs:attribute name="name" type="xs:string" use="required"/>

attribute election/districts/district/@lastUpdated
type xs:dateTime
properties
isRef 0
source <xs:attribute name="lastUpdated" type="xs:dateTime"/>

attribute election/districts/district/@final
type xs:string
properties
isRef 0
use required
source <xs:attribute name="final" type="xs:string" use="required"/>

attribute election/districts/district/@enrolment
type xs:unsignedLong
properties
isRef 0
use required
source <xs:attribute name="enrolment" type="xs:unsignedLong" use="required"/>

attribute election/districts/district/@percentRollCounted
type xs:decimal
properties
isRef 0
use required
source <xs:attribute name="percentRollCounted" type="xs:decimal" use="required"/>

attribute election/districts/district/@declaredBallotName
type xs:string
properties
isRef 0
source <xs:attribute name="declaredBallotName" type="xs:string"/>

attribute election/districts/district/@declaredPartyCode
type xs:string
properties
isRef 0
source <xs:attribute name="declaredPartyCode" type="xs:string"/>

element election/districts/district/formalVotes
diagram PublicResults_p16.png
properties
isRef 0
content complex
children percentage count
source <xs:element name="formalVotes">
 
<xs:complexType>
   
<xs:sequence>
     
<xs:element name="percentage" type="xs:decimal"/>
     
<xs:element name="count" type="xs:unsignedLong"/>
   
</xs:sequence>
 
</xs:complexType>
</xs:element>

element election/districts/district/formalVotes/percentage
diagram PublicResults_p17.png
type xs:decimal
properties
isRef 0
content simple
source <xs:element name="percentage" type="xs:decimal"/>

element election/districts/district/formalVotes/count
diagram PublicResults_p18.png
type xs:unsignedLong
properties
isRef 0
content simple
source <xs:element name="count" type="xs:unsignedLong"/>

element election/districts/district/informalVotes
diagram PublicResults_p19.png
properties
isRef 0
content complex
children percentage count
source <xs:element name="informalVotes">
 
<xs:complexType>
   
<xs:sequence>
     
<xs:element name="percentage" type="xs:decimal"/>
     
<xs:element name="count" type="xs:unsignedLong"/>
   
</xs:sequence>
 
</xs:complexType>
</xs:element>

element election/districts/district/informalVotes/percentage
diagram PublicResults_p20.png
type xs:decimal
properties
isRef 0
content simple
source <xs:element name="percentage" type="xs:decimal"/>

element election/districts/district/informalVotes/count
diagram PublicResults_p21.png
type xs:unsignedLong
properties
isRef 0
content simple
source <xs:element name="count" type="xs:unsignedLong"/>

element election/districts/district/totalVotes
diagram PublicResults_p22.png
type xs:unsignedLong
properties
isRef 0
content simple
source <xs:element name="totalVotes" type="xs:unsignedLong"/>

element election/districts/district/totalBallots
diagram PublicResults_p23.png
type xs:unsignedLong
properties
isRef 0
content simple
source <xs:element name="totalBallots" type="xs:unsignedLong"/>

element election/districts/district/numElectedCandidates
diagram PublicResults_p24.png
type xs:unsignedInt
properties
isRef 0
content simple
source <xs:element name="numElectedCandidates" type="xs:unsignedInt"/>

element election/districts/district/candidates
diagram PublicResults_p25.png
properties
isRef 0
content complex
children candidate
attributes
Name  Type  Use  Default  Fixed  annotation
countxs:unsignedIntrequired      
source <xs:element name="candidates">
 
<xs:complexType>
   
<xs:sequence>
     
<xs:element name="candidate" maxOccurs="unbounded">
       
<xs:complexType>
         
<xs:sequence>
           
<xs:element name="surname" type="xs:string"/>
           
<xs:element name="givenNames" type="xs:string"/>
           
<xs:element name="primaryVotes">
             
<xs:complexType>
               
<xs:sequence>
                 
<xs:element name="percentage" type="xs:decimal"/>
                 
<xs:element name="count" type="xs:unsignedLong"/>
               
</xs:sequence>
             
</xs:complexType>
           
</xs:element>
           
<xs:element name="n2cpVotes" minOccurs="0">
             
<xs:complexType>
               
<xs:sequence>
                 
<xs:element name="percentage" type="xs:decimal"/>
                 
<xs:element name="count" type="xs:unsignedLong"/>
               
</xs:sequence>
             
</xs:complexType>
           
</xs:element>
         
</xs:sequence>
         
<xs:attribute name="ballotOrderNumber" type="xs:unsignedInt" use="required"/>
         
<xs:attribute name="ballotName" type="xs:string" use="required"/>
         
<xs:attribute name="party" type="xs:string" use="required"/>
         
<xs:attribute name="sitting" type="xs:string" use="required"/>
         
<xs:attribute name="gender" type="xs:string" use="required"/>
       
</xs:complexType>
     
</xs:element>
   
</xs:sequence>
   
<xs:attribute name="count" type="xs:unsignedInt" use="required"/>
 
</xs:complexType>
</xs:element>

attribute election/districts/district/candidates/@count
type xs:unsignedInt
properties
isRef 0
use required
source <xs:attribute name="count" type="xs:unsignedInt" use="required"/>

element election/districts/district/candidates/candidate
diagram PublicResults_p26.png
properties
isRef 0
minOcc 1
maxOcc unbounded
content complex
children surname givenNames primaryVotes n2cpVotes
attributes
Name  Type  Use  Default  Fixed  annotation
ballotOrderNumberxs:unsignedIntrequired      
ballotNamexs:stringrequired      
partyxs:stringrequired      
sittingxs:stringrequired      
genderxs:stringrequired      
source <xs:element name="candidate" maxOccurs="unbounded">
 
<xs:complexType>
   
<xs:sequence>
     
<xs:element name="surname" type="xs:string"/>
     
<xs:element name="givenNames" type="xs:string"/>
     
<xs:element name="primaryVotes">
       
<xs:complexType>
         
<xs:sequence>
           
<xs:element name="percentage" type="xs:decimal"/>
           
<xs:element name="count" type="xs:unsignedLong"/>
         
</xs:sequence>
       
</xs:complexType>
     
</xs:element>
     
<xs:element name="n2cpVotes" minOccurs="0">
       
<xs:complexType>
         
<xs:sequence>
           
<xs:element name="percentage" type="xs:decimal"/>
           
<xs:element name="count" type="xs:unsignedLong"/>
         
</xs:sequence>
       
</xs:complexType>
     
</xs:element>
   
</xs:sequence>
   
<xs:attribute name="ballotOrderNumber" type="xs:unsignedInt" use="required"/>
   
<xs:attribute name="ballotName" type="xs:string" use="required"/>
   
<xs:attribute name="party" type="xs:string" use="required"/>
   
<xs:attribute name="sitting" type="xs:string" use="required"/>
   
<xs:attribute name="gender" type="xs:string" use="required"/>
 
</xs:complexType>
</xs:element>

attribute election/districts/district/candidates/candidate/@ballotOrderNumber
type xs:unsignedInt
properties
isRef 0
use required
source <xs:attribute name="ballotOrderNumber" type="xs:unsignedInt" use="required"/>

attribute election/districts/district/candidates/candidate/@ballotName
type xs:string
properties
isRef 0
use required
source <xs:attribute name="ballotName" type="xs:string" use="required"/>

attribute election/districts/district/candidates/candidate/@party
type xs:string
properties
isRef 0
use required
source <xs:attribute name="party" type="xs:string" use="required"/>

attribute election/districts/district/candidates/candidate/@sitting
type xs:string
properties
isRef 0
use required
source <xs:attribute name="sitting" type="xs:string" use="required"/>

attribute election/districts/district/candidates/candidate/@gender
type xs:string
properties
isRef 0
use required
source <xs:attribute name="gender" type="xs:string" use="required"/>

element election/districts/district/candidates/candidate/surname
diagram PublicResults_p27.png
type xs:string
properties
isRef 0
content simple
source <xs:element name="surname" type="xs:string"/>

element election/districts/district/candidates/candidate/givenNames
diagram PublicResults_p28.png
type xs:string
properties
isRef 0
content simple
source <xs:element name="givenNames" type="xs:string"/>

element election/districts/district/candidates/candidate/primaryVotes
diagram PublicResults_p29.png
properties
isRef 0
content complex
children percentage count
source <xs:element name="primaryVotes">
 
<xs:complexType>
   
<xs:sequence>
     
<xs:element name="percentage" type="xs:decimal"/>
     
<xs:element name="count" type="xs:unsignedLong"/>
   
</xs:sequence>
 
</xs:complexType>
</xs:element>

element election/districts/district/candidates/candidate/primaryVotes/percentage
diagram PublicResults_p30.png
type xs:decimal
properties
isRef 0
content simple
source <xs:element name="percentage" type="xs:decimal"/>

element election/districts/district/candidates/candidate/primaryVotes/count
diagram PublicResults_p31.png
type xs:unsignedLong
properties
isRef 0
content simple
source <xs:element name="count" type="xs:unsignedLong"/>

element election/districts/district/candidates/candidate/n2cpVotes
diagram PublicResults_p32.png
properties
isRef 0
minOcc 0
maxOcc 1
content complex
children percentage count
source <xs:element name="n2cpVotes" minOccurs="0">
 
<xs:complexType>
   
<xs:sequence>
     
<xs:element name="percentage" type="xs:decimal"/>
     
<xs:element name="count" type="xs:unsignedLong"/>
   
</xs:sequence>
 
</xs:complexType>
</xs:element>

element election/districts/district/candidates/candidate/n2cpVotes/percentage
diagram PublicResults_p33.png
type xs:decimal
properties
isRef 0
content simple
source <xs:element name="percentage" type="xs:decimal"/>

element election/districts/district/candidates/candidate/n2cpVotes/count
diagram PublicResults_p34.png
type xs:unsignedLong
properties
isRef 0
content simple
source <xs:element name="count" type="xs:unsignedLong"/>

element election/districts/district/booths
diagram PublicResults_p35.png
properties
isRef 0
content complex
children booth
attributes
Name  Type  Use  Default  Fixed  annotation
boothsInCountxs:unsignedIntrequired      
boothsCountxs:unsignedIntrequired      
notionalBoothsInCountxs:unsignedIntrequired      
source <xs:element name="booths">
 
<xs:complexType>
   
<xs:sequence>
     
<xs:element name="booth" maxOccurs="unbounded">
       
<xs:complexType>
         
<xs:sequence>
           
<xs:element name="ballots" type="xs:unsignedLong"/>
           
<xs:element name="formalVotes" type="xs:unsignedLong"/>
           
<xs:element name="informalVotes" type="xs:unsignedLong"/>
           
<xs:element name="totalVotes" type="xs:unsignedLong"/>
           
<xs:element name="boothCandidates">
             
<xs:complexType>
               
<xs:sequence>
                 
<xs:element name="boothCandidate" maxOccurs="unbounded">
                   
<xs:complexType>
                     
<xs:sequence>
                       
<xs:element name="primaryVotes" type="xs:unsignedLong"/>
                       
<xs:element name="n2cpVotes" type="xs:unsignedLong" minOccurs="0"/>
                     
</xs:sequence>
                     
<xs:attribute name="ballotOrderNumber" type="xs:unsignedInt" use="required"/>
                   
</xs:complexType>
                 
</xs:element>
               
</xs:sequence>
             
</xs:complexType>
           
</xs:element>
         
</xs:sequence>
         
<xs:attribute name="id" type="xs:unsignedLong" use="required"/>
         
<xs:attribute name="name" type="xs:string" use="required"/>
         
<xs:attribute name="in" type="xs:string" use="required"/>
         
<xs:attribute name="typeCode" type="xs:string" use="required"/>
         
<xs:attribute name="typeDescription" type="xs:string" use="required"/>
       
</xs:complexType>
     
</xs:element>
   
</xs:sequence>
   
<xs:attribute name="boothsInCount" type="xs:unsignedInt" use="required"/>
   
<xs:attribute name="boothsCount" type="xs:unsignedInt" use="required"/>
   
<xs:attribute name="notionalBoothsInCount" type="xs:unsignedInt" use="required"/>
 
</xs:complexType>
</xs:element>

attribute election/districts/district/booths/@boothsInCount
type xs:unsignedInt
properties
isRef 0
use required
source <xs:attribute name="boothsInCount" type="xs:unsignedInt" use="required"/>

attribute election/districts/district/booths/@boothsCount
type xs:unsignedInt
properties
isRef 0
use required
source <xs:attribute name="boothsCount" type="xs:unsignedInt" use="required"/>

attribute election/districts/district/booths/@notionalBoothsInCount
type xs:unsignedInt
properties
isRef 0
use required
source <xs:attribute name="notionalBoothsInCount" type="xs:unsignedInt" use="required"/>

element election/districts/district/booths/booth
diagram PublicResults_p36.png
properties
isRef 0
minOcc 1
maxOcc unbounded
content complex
children ballots formalVotes informalVotes totalVotes boothCandidates
attributes
Name  Type  Use  Default  Fixed  annotation
idxs:unsignedLongrequired      
namexs:stringrequired      
inxs:stringrequired      
typeCodexs:stringrequired      
typeDescriptionxs:stringrequired      
source <xs:element name="booth" maxOccurs="unbounded">
 
<xs:complexType>
   
<xs:sequence>
     
<xs:element name="ballots" type="xs:unsignedLong"/>
     
<xs:element name="formalVotes" type="xs:unsignedLong"/>
     
<xs:element name="informalVotes" type="xs:unsignedLong"/>
     
<xs:element name="totalVotes" type="xs:unsignedLong"/>
     
<xs:element name="boothCandidates">
       
<xs:complexType>
         
<xs:sequence>
           
<xs:element name="boothCandidate" maxOccurs="unbounded">
             
<xs:complexType>
               
<xs:sequence>
                 
<xs:element name="primaryVotes" type="xs:unsignedLong"/>
                 
<xs:element name="n2cpVotes" type="xs:unsignedLong" minOccurs="0"/>
               
</xs:sequence>
               
<xs:attribute name="ballotOrderNumber" type="xs:unsignedInt" use="required"/>
             
</xs:complexType>
           
</xs:element>
         
</xs:sequence>
       
</xs:complexType>
     
</xs:element>
   
</xs:sequence>
   
<xs:attribute name="id" type="xs:unsignedLong" use="required"/>
   
<xs:attribute name="name" type="xs:string" use="required"/>
   
<xs:attribute name="in" type="xs:string" use="required"/>
   
<xs:attribute name="typeCode" type="xs:string" use="required"/>
   
<xs:attribute name="typeDescription" type="xs:string" use="required"/>
 
</xs:complexType>
</xs:element>

attribute election/districts/district/booths/booth/@id
type xs:unsignedLong
properties
isRef 0
use required
source <xs:attribute name="id" type="xs:unsignedLong" use="required"/>

attribute election/districts/district/booths/booth/@name
type xs:string
properties
isRef 0
use required
source <xs:attribute name="name" type="xs:string" use="required"/>

attribute election/districts/district/booths/booth/@in
type xs:string
properties
isRef 0
use required
source <xs:attribute name="in" type="xs:string" use="required"/>

attribute election/districts/district/booths/booth/@typeCode
type xs:string
properties
isRef 0
use required
source <xs:attribute name="typeCode" type="xs:string" use="required"/>

attribute election/districts/district/booths/booth/@typeDescription
type xs:string
properties
isRef 0
use required
source <xs:attribute name="typeDescription" type="xs:string" use="required"/>

element election/districts/district/booths/booth/ballots
diagram PublicResults_p37.png
type xs:unsignedLong
properties
isRef 0
content simple
source <xs:element name="ballots" type="xs:unsignedLong"/>

element election/districts/district/booths/booth/formalVotes
diagram PublicResults_p38.png
type xs:unsignedLong
properties
isRef 0
content simple
source <xs:element name="formalVotes" type="xs:unsignedLong"/>

element election/districts/district/booths/booth/informalVotes
diagram PublicResults_p39.png
type xs:unsignedLong
properties
isRef 0
content simple
source <xs:element name="informalVotes" type="xs:unsignedLong"/>

element election/districts/district/booths/booth/totalVotes
diagram PublicResults_p40.png
type xs:unsignedLong
properties
isRef 0
content simple
source <xs:element name="totalVotes" type="xs:unsignedLong"/>

element election/districts/district/booths/booth/boothCandidates
diagram PublicResults_p41.png
properties
isRef 0
content complex
children boothCandidate
source <xs:element name="boothCandidates">
 
<xs:complexType>
   
<xs:sequence>
     
<xs:element name="boothCandidate" maxOccurs="unbounded">
       
<xs:complexType>
         
<xs:sequence>
           
<xs:element name="primaryVotes" type="xs:unsignedLong"/>
           
<xs:element name="n2cpVotes" type="xs:unsignedLong" minOccurs="0"/>
         
</xs:sequence>
         
<xs:attribute name="ballotOrderNumber" type="xs:unsignedInt" use="required"/>
       
</xs:complexType>
     
</xs:element>
   
</xs:sequence>
 
</xs:complexType>
</xs:element>

element election/districts/district/booths/booth/boothCandidates/boothCandidate
diagram PublicResults_p42.png
properties
isRef 0
minOcc 1
maxOcc unbounded
content complex
children primaryVotes n2cpVotes
attributes
Name  Type  Use  Default  Fixed  annotation
ballotOrderNumberxs:unsignedIntrequired      
source <xs:element name="boothCandidate" maxOccurs="unbounded">
 
<xs:complexType>
   
<xs:sequence>
     
<xs:element name="primaryVotes" type="xs:unsignedLong"/>
     
<xs:element name="n2cpVotes" type="xs:unsignedLong" minOccurs="0"/>
   
</xs:sequence>
   
<xs:attribute name="ballotOrderNumber" type="xs:unsignedInt" use="required"/>
 
</xs:complexType>
</xs:element>

attribute election/districts/district/booths/booth/boothCandidates/boothCandidate/@ballotOrderNumber
type xs:unsignedInt
properties
isRef 0
use required
source <xs:attribute name="ballotOrderNumber" type="xs:unsignedInt" use="required"/>

element election/districts/district/booths/booth/boothCandidates/boothCandidate/primaryVotes
diagram PublicResults_p43.png
type xs:unsignedLong
properties
isRef 0
content simple
source <xs:element name="primaryVotes" type="xs:unsignedLong"/>

element election/districts/district/booths/booth/boothCandidates/boothCandidate/n2cpVotes
diagram PublicResults_p44.png
type xs:unsignedLong
properties
isRef 0
minOcc 0
maxOcc 1
content simple
source <xs:element name="n2cpVotes" type="xs:unsignedLong" minOccurs="0"/>

element election/totalBallots
diagram PublicResults_p45.png
type xs:unsignedLong
properties
isRef 0
content simple
source <xs:element name="totalBallots" type="xs:unsignedLong"/>

element election/totalFormalVotes
diagram PublicResults_p46.png
type xs:unsignedLong
properties
isRef 0
content simple
source <xs:element name="totalFormalVotes" type="xs:unsignedLong"/>

element election/totalInformalVotes
diagram PublicResults_p47.png
type xs:unsignedLong
properties
isRef 0
content simple
source <xs:element name="totalInformalVotes" type="xs:unsignedLong"/>

element election/totalVotes
diagram PublicResults_p48.png
type xs:unsignedLong
properties
isRef 0
content simple
source <xs:element name="totalVotes" type="xs:unsignedLong"/>


XML Schema documentation generated by
XMLSpy Schema Editor http://www.altova.com/xmlspy