Re: Parsing and Storing in Map

2007-12-10 Thread Zapo
Thanks J, I did in the following way and it did not gave any issues, not sure it this was correct I used the inst2xsd tool - inst2xsd AddCustomer.xml never -design ss -verbose -validate (I thought validate should validate the schema againsts the xml) Anyway thanks for the tip, it worked, I di

Re: Parsing and Storing in Map

2007-12-10 Thread Jacob Danner
Hey Zapo, I'm curious, have you tried validating your instance against this schema? At the moment, your instance is not valid according to your schema because you have not defined Testcase as an 'array' so multiple occurences of the Testcase element are not allowed. Try the following: ...

Re: Parsing and Storing in Map

2007-12-09 Thread Zapo
Thanks Jacaob, Here is my schema http://www.w3.org/2001/XMLSchema"; elementFormDefault="qualified" attributeFormDefault="unqualified"> I really do not know if my XSD is using any models? Pardon my ignorance I didn't

Re: Parsing and Storing in Map

2007-12-09 Thread Jacob Danner
What does this section of your schema look like? I'm wondering if this is a case of schema design styles as to why your get...[] method does not show up. Do you know if your xsd is using russian doll, venetian blind, salami slice, or a mix. Thanks, -jacobd On Dec 9, 2007 6:37 PM, Zapo <[EMAIL PROT

Re: Parsing and Storing in Map

2007-12-09 Thread Zapo
Thanks Jacob, Yes it was more of approach I am struggling with. Thanks for bringing up the interesting question on TestCasesDocument.getTestCase(). I tried something similar like this and didn't get an array of testcases, infact I was hoping to do that as you have rightly suggested. On Map, i

Re: Parsing and Storing in Map

2007-12-09 Thread Jacob Danner
Hey Zapo, I think this question has less to do with XmlBeans and more to do with algorithm implementation. I think it might be easiest to use a map if you want to go that route, but it I think it might be easier to use one of the Cursor APIs with XPath and get an XmlObject[] of //TestCase values. I