Thu, 10 May 2007 05:16:33 -0700 (PDT), /aac/:
Thu, 10 May 2007 07:46:33 -0400, /Michael Glavassevich/:
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).
[1] http://xerces.apache.org/xerces2-j/features.html#validation.dynamic
But, I have verified that, if I change this root name by other string (not
defined in the schema) then it never reports an error.
[...]
Besides I append the "features configuration" I define in my program before
the validation, as you can see the "dynamic" option is activated.
parserObject.setFeature("http://apache.org/xml/features/validation/dynamic",
true);
If I'm not missing something you need to disable the dynamic
validation, instead.
--
Stanimir
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]