"RefuX Zanzeebarr" <refux@xxxxxxxxxxx> wrote on 06/27/2006 04:54:37 PM:
> I apologize for an additional post, however I've quickly run into
another
> problem.
> This is related to navigating the schema, I did find the QueryXS sample
> which was very useful and I've also been digging about in the API docs
and
> in the debugger however nothing is jumping out at me, so I guess I will
> bother you some more :(
>
> Many parts of the Schema I'm working with look like this:
> <xsd:complexType name="One">
> <xsd:all minOccurs="0">
> <xsd:element name=Two" type="TwoType" minOccurs="0" maxOccurs="1"
> nillable="true" />
> <xsd:element name="Three" type="ThreeType" minOccurs="0"
maxOccurs="1"
> nillable="true" /> </xsd:all>
> </xsd:complexType>
>
> Relating back to my previous post I want to leverage the Schema for UI
> validation.
> When the user in the UI entering text for element 'Three' I want to be
able
> to look up it's type so I can validate against it. However I can't get
my
> hands on this element, I can get my hands on the Complex Type 'One'
however
> I can't navigate to 'Three'.
>
> I have no doubt I'm just being really dumb here, however any help would
be
> much appreciated!
The interfaces in the XML Schema API [1] are isomorphic to the schema
components described by the schema specification, so you'll have to walk
through a few particles (XSParticle) and a model group (XSModelGroup) to
get from the complex type definition to the element declaration you're
looking for.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscribe@xxxxxxxxxxxxxxxxx
> For additional commands, e-mail: j-users-help@xxxxxxxxxxxxxxxxx
[1]
http://www.w3.org/Submission/2004/SUBM-xmlschema-api-20040309/xml-schema-api.html
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@xxxxxxxxxx
E-mail: mrglavas@xxxxxxxxxx
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|