Union like mechanism for complex data types?

Discussion in 'XML' started by Andrey Brozhko, Dec 21, 2004.

  1. Hi

    The situation:

    XML document can be either

    <?xml version="1.0" encoding="UTF-8"?>


    <?xml version="1.0" encoding="UTF-8"?>

    So I have two types defined:

    <xs:complexType name="IntegerArray">
    <xs:element name="item" type="types:IntegerType"/>

    and the second type:

    <xs:simpleType name="KeyWord">
    <xs:restriction base="xs:string">
    <xs:enumeration value="testKeyWord"/>
    <xs:enumeration value="testKeyWord2"/>

    Is there any way I can 'merge' lexical spaces of these types together
    (similar to what union does for simple types)? If not, what's the
    correct way to describe the content of my xml document?

    Andrey Brozhko, Dec 21, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.