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

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

2009-09-27 Thread maven apache
Hi : In the xml I uploaded, I want to get the valuse under the element DataArray, but I am not sure the type , so I use the following codes to judge: -- ObservationCollectionDocument ocd=ObservationCollectionDocument.Factory.parse(new File(DataArray.xml));

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

2009-09-27 Thread Jacob Danner
How is DataArray defined in your schema? Also, does this instance validate without errors? -jacobd On 9/27/09, maven apache apachemav...@gmail.com wrote: Hi : In the xml I uploaded, I want to get the valuse under the element DataArray, but I am not sure the type , so I use the following codes

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

2009-09-27 Thread maven apache
2009/9/28 Jacob Danner jacob.dan...@gmail.com How is DataArray defined in your schema? I upload the DataArray schema. If possible, I would like some one can check it. Also, does this instance validate without errors? I get no error but only false when I use the following codes to validate:

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

2009-09-27 Thread maven apache
Sorry this is the schema, I forget in the last post. 2009/9/28 maven apache apachemav...@gmail.com 2009/9/28 Jacob Danner jacob.dan...@gmail.com How is DataArray defined in your schema? I upload the DataArray schema. If possible, I would like some one can check it. Also, does this