[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: [jira] Commented: (XMLBEANS-334) No access to content for mixed
From: "Radu Preotiuc-Pietro (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date: 2009-11-13 2:22:39
Message-ID: 1803060855.1258078959641.JavaMail.jira () brutus
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/XMLBEANS-334?page=com.atlassian.jira.plugi \
n.system.issuetabpanels:comment-tabpanel&focusedCommentId=12777337#action_12777337 ]
Radu Preotiuc-Pietro commented on XMLBEANS-334:
-----------------------------------------------
Well, the thing is that, since you can have many children elements under the "Title" \
element and text interspersed with them, you would need a way to see what is the \
relative position of all the text fragments with respect to each child element. You \
would use XmlCursor for that.
See the MixedContent sample.
> No access to content for mixed complexType containing an empty choice only
> --------------------------------------------------------------------------
>
> Key: XMLBEANS-334
> URL: https://issues.apache.org/jira/browse/XMLBEANS-334
> Project: XMLBeans
> Issue Type: Bug
> Components: Compiler
> Affects Versions: Version 2.2, Version 2.3
> Reporter: Johannes Stamminger
> Priority: Trivial
>
> Within a small example that I will attach in a minute there is defined an element \
> Title: <xs:element name="Title">
> <xs:complexType mixed="true">
> <xs:choice minOccurs="0" maxOccurs="unbounded"/>
> </xs:complexType>
> </xs:element>
> The generated sourcecode for interface Title within XBTitleDocument (all xmlbeans \
> generated classes were created with XB prefix by way of xsdconfig) does extend from \
> org.apache.xmlbeans.XmlObject and contain nothing else than the static \
> org.apache.xmlbeans.SchemaType member. Especially it does not provide access to the \
> string content of the element. Though the generated implementation TitleImpl in \
> XBTitleDocumentImpl does provide access as it
> -> derives from org.apache.xmlbeans.impl.values.XmlComplexContentImpl
> -> deriving from XmlObjectBase
> -> granting access to that value by way of method getStringValue()
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic