RE: validation error, but validate line command says it's ok

2006-04-16 Thread Stefano Peruzzi
I'd like to share some news and asks for confirmation.The problem: I save an XML data in a text file, use parse() method and obtain an invalid document object.I wrote this test code: SchedaCensimento sc = SchedaCensimento.Factory.newInstance(); Capitolo capitolo = sc.addNewCapitolo(); // add

RE: validation error, but validate line command says it's ok

2006-04-02 Thread Stefano Peruzzi
Thanks for the kind answer Radu, You're right, I didn't explain the problem very well (my poor English knowledge doesn't help). I have an XSD file. I compiled it with scomp command. I used the resulting classes to parse XML data generated by a remote procedure (a poor implementation of a web

RE: validation error, but validate line command says it's ok

2006-03-30 Thread Radu Preotiuc-Pietro
Hard to say where you are wrong, since you give very little detail of what you are doing ;-) In fact, what the validate implementation does is parse the document provided in an XmlObject, then call .validate() on it (in addition to parsing the Schema files of course). So what I can suggest is