Title: Schema Validator broken?

Hi,

Why does SchemaElementDecl in SEnumVal example contain elements from the XML document even if it is not in the schema?  Shouldn't it only contain those elements or values that are listed in the schema?

I have a dummy xml document with a root element called "dummy" pointing to the document's schema.  Whenever I run SEnumVal, the last element retrieved from SchemaElementDecl is this "dummy" element.  Since I don't know if the user will use the word "dummy" as the root element for her dummy document, I can't therefore check for "dummy" and eliminate it in my application.  The only alternative is to figure out the last element validated and then assume that this is the root element from the xml document. 

Is there a better way to do this in Xerces or is there going to be a fix to remove the root element from being listed in the validator?

 


Reply via email to