You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Andy Brook (JIRA)" <xm...@xml.apache.org> on 2009/10/28 15:44:59 UTC
[jira] Resolved: (XMLBEANS-420) Enum values dont appear to be
accessible
[ https://issues.apache.org/jira/browse/XMLBEANS-420?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andy Brook resolved XMLBEANS-420.
---------------------------------
Resolution: Invalid
My problem, old XML referring to old schema, not what Id compiled against.
> Enum values dont appear to be accessible
> ----------------------------------------
>
> Key: XMLBEANS-420
> URL: https://issues.apache.org/jira/browse/XMLBEANS-420
> Project: XMLBeans
> Issue Type: Bug
> Affects Versions: Version 2.3, Version 2.4
> Environment: Ubuntu x86_64/ SUN JDK 1.6.0_16
> Reporter: Andy Brook
>
> Ive compiled a schema via maven-xmlbeans, works perfectly, can validate schema document via xbeans, can render out 99% of all values without a problem.
> The only thing I cannot seem to get is Enum values. The format of xml is like:
> {code}
> <W>
> <Xs>
> <X/>
> </Xs>
> <Ys>
> <Y/>
> </Yz>
> <Z>XpanD</Z>
> </W>
> {code}
> So, I can dump the node, I see Z and the text within. I can also go statically through the enum and list the enumerated values.
> On W there is a _isZ()_ method, calling this returns false for the two W's I have, both of which have a value for Z. If I go ahead and call W.getZ(), it just returns null.
> The data is in there, I just can't get it out. Ive tried 2.3 and 2.4. Is there something I'm missing (probable!) or is this a bug?
> worst case I'm gonna have to go to String processing to fix this, would be nice to understand whats wrong and avoid scratchy string processing!
--
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