Hi there,

first let me say thanx for this nice project i'm using with joy for years.

I have a question.  Schema A looks like

<a ns="a">
     <b/>
    <c><xs:any></c>
</a>

Schema B looks like
<x ns="x">
    <y/>
</x>

I have created XMLBeans for both Schemas, so i have 2 jars.
I put them both in the classpath and i try to parse the following XML

<a ns="a">
     <b/>
    <c>  
        <x ns="x">
            <y/>
        </x>
    </c>
</a>


After xmlbeans for A are created can i call the follwing?

XmlObject[] anys    =    a.getC().selectChildren("x");
X x = (X)anys[0];

So my question is, does parser of xmlbeans A tries to find xmlbeans B
when parsing x with namespace x?

Or is there any chance to call:

XmlObject[] anys    =    a.getC().selectChildren("x");
X x = X.Factory.parse(anys[0]);

thanx in advance

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to