Hello, I'm parsing schemas (by getting an XSModel and then getting the top element and going from there) and what the program basically does is creating a relational model of the schema. Complex element become tables and their children that are attributes or simple elements that can occur at most 1 time become columns in the tables. Now I need to handle xsd:any. Consider the following schema:

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";
    elementFormDefault="qualified"
    targetNamespace="myns" xmlns="myns">
    <xsd:element name="persons">
        <xsd:complexType>
            <xsd:sequence maxOccurs="unbounded">
                <xsd:element name="person" type="personType"/>
            </xsd:sequence>
        </xsd:complexType>
    </xsd:element>
    <xsd:complexType name="personType">
        <xsd:sequence>
            <xsd:element name="name" type="xsd:string"/>
            <xsd:any namespace="##any" minOccurs="0"/>
        </xsd:sequence>
    </xsd:complexType>
</xsd:schema>

What I want to happen here is that the complex element personType should become a table in my relational model and it should get "name" as a column (of type string) and the xsd:any should become a column of type xml. However, during parsing I don't detect the xsd:any "construct". How can I solve this?

- EL


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to