Re: [xml] libxml schema validation



William Mok schrieb:

I am using xmlSchemaValidateDoc to verfiy a XML doc against a schema.
I got an error "XML_SCHEMAS_ERR_UNDECLAREDELEM". What does this error
mean?

A guess - the root element of the document instance you're validating
(the validation root) does not have a matching global declaration in
the schema. (Your doc is <Urmel xmlns="urn:X-Gurke"/>, and there is no
global declaration for Urmel in that namespace in your schema.)

Any specific example that sombody can give me to cause the error to
occur?

Try validating a document against a schema where the above applies.

Michael Ludwig



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]