Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[XML Schema 1.1] anySimpleType versus anyAtomicType?

From: "Costello, Roger L." <costello@-----.--->
To: "xmlschema-dev@--.---" <-------------@--.--->
Date: 7/14/2009 7:49:00 PM
Hi Folks,

Consider these two element declarations:

    <element name="A" type="anySimpleType" />

    <element name="B" type="anyAtomicType" />

This is my understanding of the difference between anySimpleType and anyAtomicType:

The value of <A> can be any primitive type or a list type, e.g.

    <A xsi:type="xs:string">Hello World</A>
    <A xsi:type="xs:decimal">12.39</A>
    <A xsi:type="xs:boolean">true</A>
    <A xsi:type="ex:LotteryNumbers">3 8 19</A>

where ex:LotteryNumbers is defined as a list type:

    <xs:simpleType name="LotteryNumbers">
        <xs:list itemType="xs:positiveInteger" />
    </xs:simpleType>

The value of <B> can only be a primitive type, e.g.

    <B xsi:type="xs:string">Hello World</B>
    <B xsi:type="xs:decimal">12.39</B>
    <B xsi:type="xs:boolean">true</B>

Thus, the difference between anyAtomicType and anySimpleType is that an anySimpleType value can be a list type, whereas that's not legal for anyAtomicType.

Correct?

/Roger


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent