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

List:       xmlbeans-dev
Subject:    [jira] Created: (XMLBEANS-420) Enum values dont appear to be
From:       "Andy Brook (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2009-10-27 14:41:59
Message-ID: 528319366.1256654519625.JavaMail.jira () brutus
[Download RAW message or body]

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


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

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