You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Alexander Ilyin (JIRA)" <ji...@apache.org> on 2008/07/20 09:56:31 UTC
[jira] Created: (WSCOMMONS-366)
XmlSchemaCollection.getElementByName doesn't work for the nested elements
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.
[jira] Closed: (WSCOMMONS-366) XmlSchemaCollection.getElementByName
doesn't work for the nested elements
Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
[ 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.