RE: XMLBeans : How can I get a value and not an xml fragment?

2008-11-17 Thread Radu Preotiuc-Pietro
: XMLBeans : How can I get a value and not an xml fragment? Hi, I had to face a related Problem recently: How to get a (java)-value from an XmlObject without knowing its actual type? Actually I'm doing something like this: Object=getValue(XmlObject xo){ if (xo instanceof

Re: XMLBeans : How can I get a value and not an xml fragment?

2008-11-16 Thread Siegfried Baiz
Hi, I had to face a related Problem recently: How to get a (java)-value from an XmlObject without knowing its actual type? Actually I'm doing something like this: Object=getValue(XmlObject xo){ if (xo instanceof org.apache.xmlbeans.impl.values.XmlObjectBase){ return

Re: XMLBeans : How can I get a value and not an xml fragment?

2008-11-15 Thread Jacob Danner
I'm not sure how the type is defined, but aren't there getters and setters or something like intValue() to get this. You are seeing this because getM() returns some kind of type associated with xml (element in this case) and not some kind of java primitive. The docs explain things far better than