Hi Vincent, Have you tried XSModel.getSubstitutionGroup(XSElementDeclaration) [1]?
Thanks. [1] http://xerces.apache.org/xerces2-j/javadocs/xs/org/apache/xerces/xs/XSModel.html#getSubstitutionGroup (org.apache.xerces.xs.XSElementDeclaration) Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org Vincent Herrmann <vincent.herrm...@free.fr> wrote on 12/17/2009 11:34:29 AM: > Hello. > > I have a problem with xerces for parse XML Schema. > My problem is to get children from a XSElementDeclaration. I can do > it in most of case, but there is one I can't. > > This is a part from my XML Schema: > > <xs:element name="tei_model.HistoCPart" abstract="true" type="xs:string"/> > > <xs:element name="author" substitutionGroup="mlif:tei_model.HistoCPart"> > > When I have the XSElementDeclaration tei_model.HistoCPart, how must > I do to get author? Is it possible? > > Thanks in advance, regards. > > Vincent.