Hi Alberto, Not sure what you mean by "the root element of this XML file is incorrect". Any element with a top-level declaration in your schema could potentially be used as a root element. Did you mean that the element isn't declared anywhere? If that's the case, you should check if you have the dynamic validation [1] feature enabled (don't set it to true if that's not the behaviour you want).
Thanks. [1] http://xerces.apache.org/xerces2-j/features.html#validation.dynamic aac <[EMAIL PROTECTED]> wrote on 05/10/2007 07:03:25 AM: > Hi all. > I am using the 2.9.0 Java version. > > First at all, I am loading the complete grammar pool of the Schema files in > one parser object. > > And then, when I am trying to validate an XML file, if the root element of > this XML file is incorrect (with a different namespace and/or with a > different name), I don't receive any error message in the Error handler. > > Can you help me? > Thanks in advance. > > Alberto > Remote Sensing Lab > INTA > Madrid (Spain) > > > > -- > View this message in context: http://www.nabble.com/No-validation- > error-message-when-the-root-element-is-erroneous-tf3720894.html#a10410956 > Sent from the Xerces - J - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]