[prev in list] [next in list] [prev in thread] [next in thread] 

List:       woden-dev
Subject:    [jira] [Resolved] (XMLSCHEMA-50) Unable to get the contents of a XmlSchemaAnnotation in some cases
From:       "Daniel Kulp (JIRA)" <jira () apache ! org>
Date:       2018-01-25 17:50:00
Message-ID: JIRA.13105049.1506423150000.39019.1516902600325 () Atlassian ! JIRA
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/XMLSCHEMA-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Daniel Kulp resolved XMLSCHEMA-50.
----------------------------------
    Resolution: Fixed
      Assignee: Daniel Kulp

> 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
> Assignee: Daniel Kulp
> Priority: Major
> Fix For: 2.2.3
> 
> 
> 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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic