[ https://issues.apache.org/jira/browse/XMLSCHEMA-50?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16288969#comment-16288969 ]
ASF GitHub Bot commented on XMLSCHEMA-50: ----------------------------------------- GitHub user mariokorte opened a pull request: https://github.com/apache/webservices-xmlschema/pull/3 Fix for JIRA issue: This is a fix for the issue described in JIRA: https://issues.apache.org/jira/browse/XMLSCHEMA-50?jql=project%20%3D%20XMLSCHEMA You can merge this pull request into a Git repository by running: $ git pull https://github.com/mariokorte/webservices-xmlschema trunk Alternatively you can review and apply these changes as the patch at: https://github.com/apache/webservices-xmlschema/pull/3.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3 ---- commit 33d55ef30e6ce522ab61ba30a9cc128a494e79a2 Author: Mario Korte <ikt-dienstleistun...@mariokorte.de> Date: 2017-12-13T09:33:57Z Fix for JIRA issue: https://issues.apache.org/jira/browse/XMLSCHEMA-50?jql=project%20%3D%20XMLSCHEMA ---- > Unable to get the contents of a XmlSchemaAnnotation in some cases > ----------------------------------------------------------------- > > Key: XMLSCHEMA-50 > URL: https://issues.apache.org/jira/browse/XMLSCHEMA-50 > Project: XmlSchema > Issue Type: Bug > Affects Versions: 2.2.1, 2.2.2 > Reporter: Romuald > > Hi, > In this kind of construction: > {code:xml} > <?xml version="1.0" encoding="UTF-8"?> > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> > <xs:complexType name="baseType"> > <xs:simpleContent> > <xs:extension base="xs:string"> > <xs:attribute name="attr" /> > </xs:extension> > </xs:simpleContent> > </xs:complexType> > <xs:element name="myElement"> > <xs:complexType> > <xs:simpleContent> > <xs:restriction base="baseType"> > <xs:enumeration value="myEnumValue"> > <xs:annotation> > <xs:documentation> > My documentation. > </xs:documentation> > </xs:annotation> > </xs:enumeration> > </xs:restriction> > </xs:simpleContent> > </xs:complexType> > </xs:element> > </xs:schema> > {code} > I am unable to fetch anything under the <xs:annotation>. I can get a > XmlSchemaAnnotation instance but if I call getItems().size() on it, it > returns 0, and I can't get any deeper in the schema that way. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ws.apache.org For additional commands, e-mail: dev-h...@ws.apache.org