I need to make an xsd file for CodeSynthesis's XSD. There will be multiple schemas for different response types. As you can see in a sample XML file some elements have a type attribute, and some have nil attribute. These attributes provide no info for parsing, I already know types and set them in xsd file properly. Besides that, I don't know which elements are nillable. Can these attributes be some way skipped in xsd schema, or I should write for each element:
<xsd:complexType>
<xsd:attribute name="type" type="TypeAttr" fixed="integer"/>
<xsd:attribute ref="nil"/>
</xsd:complexType>
where
<xsd:attribute name="nil" type="xsd:boolean"/>
That's one of the XML files:
<?xml version="1.0" encoding="UTF-8"?>
<account>
<access-key>bla-bla-bla</access-key>
<billing-error-date type="date" nil="true"></billing-error-date>
<default-ticket-report-id type="integer">0</default-ticket-report-id>
<default-time-zone nil="true"></default-time-zone>
<description nil="true"></description>
<disk-usage type="integer">38048</disk-usage>
<flagged-for-billing-error type="boolean">false</flagged-for-billing-error>
<force-ssl type="boolean">false</force-ssl>
<id type="integer">1</id>
<plan>micro</plan>
<subdomain>companyname</subdomain>
<text-markup>markdown,textile,plain</text-markup>
<title>companyname</title>
<features>
<attachments>true</attachments>
<ssl>false</ssl>
<storage>512</storage>
<time_tracking>false</time_tracking>
<max_people>10</max_people>
<max_pages>99999</max_pages>
<beta>false</beta>
</features>
<notebook_pages>0</notebook_pages>
<created-at>2011-02-16T13:50:09Z</created-at>
<updated-at>2011-04-07T09:11:10Z</updated-at>
</account>