[
https://issues.apache.org/jira/browse/WSCOMMONS-366?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benson Margulies closed WSCOMMONS-366.
--------------------------------------
Resolution: Invalid
This is as-designed. Nested elements do not have global names. The API only
searches for global elements. It would take an xquery to identify such an
element.
> XmlSchemaCollection.getElementByName doesn't work for the nested elements
> -------------------------------------------------------------------------
>
> Key: WSCOMMONS-366
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-366
> Project: WS-Commons
> Issue Type: Bug
> Components: XmlSchema
> Reporter: Alexander Ilyin
> Priority: Critical
>
> <xs:element name="ParentElement">
> <xs:complexType>
> <xs:sequence>
> <xs:element name="SomeNestedOne" type="SomeNestedOneType" />
> </xs:sequence>
> </xs:complexType>
> </xs:element>
> XmlSchemaCollection.getElementByName can't find the SomeNestedOne element and
> returns null
> I guess the problem in the XmlSchema.getElementByName which iterates only by
> top level elements and by imported schemas.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.