Re: a stange problem: can not judge the type of a xmlObject

2009-09-28 Thread heikki
Why don't you try to see what the runtime type of your results actually *is* ? On Mon, Sep 28, 2009 at 3:53 AM, maven apache apachemav...@gmail.comwrote: Sorry this is the schema, I forget in the last post. 2009/9/28 maven apache apachemav...@gmail.com 2009/9/28 Jacob Danner

Re: a stange problem: can not judge the type of a xmlObject

2009-09-28 Thread Jacob Danner
The fact that validation is not returrning true should be the first indication as to why you are not getting the value expected back. ObservationCollectionDocument ocd=ObservationCollectionDocument.Factory.parse(new File(DataArray.xml)); List errors = new LinkedList();

Re: a stange problem: can not judge the type of a xmlObject

2009-09-28 Thread maven apache
2009/9/29 Jacob Danner jacob.dan...@gmail.com The fact that validation is not returrning true should be the first indication as to why you are not getting the value expected back. ObservationCollectionDocument ocd=ObservationCollectionDocument.Factory.parse(new File(DataArray.xml)); List

Re: toString() differs from save()

2009-09-28 Thread Jacob Danner
This is by design, take a peek at the javadoc. http://xmlbeans.apache.org/docs/2.4.0/reference/org/apache/xmlbeans/XmlTokenSource.html#xmlText(org.apache.xmlbeans.XmlOptions) xmlText String http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html *xmlText*(XmlOptions