Another one from the "yet another newbie question" department...

I'm trying to preparse XML schema files and I've hit a snag that I just cannot figure out on my own.

Using Xerces-J, I'm able to get all the information out, except the element's data type. In fact, all I can get is the element name and nothing else.

Given the following XSD snippet:

    <element name="PriceRequest">
        <complexType>
            <all>
                <element name="Symbol" type="string"/>
                <element name="price" type="float"/>
            </all>
         </complexType>
    </element>

I managed to drill down through the Xerces-J methods and end up in the XSComplexTypeDecl class when I hit the problem. My code is complicated (made worse by my toying with it now), but hopefully the question is simple enough to answer: How can I get the data types out of the declared elements (as shown above) from the object context created by XSComplexTypeDecl? what method(s) do I need to connect together in order to extract it? Is there a 'set' list?

I guess that's three questions. I'm so lost... :-)

I'm able to get the element names from a particle list by parsing a string that returns all of them using getParticle() in XSComplexTypeDecl -- probably not the cleanest, but it works. Why doesn't XSComplexTypeDecl provide types here as well? I'm sure there's a reason which I don't yet see.

I'm not even sure what is relevant code to clip out for your viewing pleasure.

Any ideas?
--


--Henry


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



Reply via email to