[xml] xmlValidCtxt.error called, but not invalid?

Date view Thread view Subject view Author view

From: Harry Blundell (harry@halcyoninc.com)
Date: Mon Nov 06 2000 - 22:35:59 EST


Hi folks,

I have a document with an element with a missing required attribute.

When parsing with validation, or post-validating, I get the
xmlValidCtxt.error function called, with an error like

  Element x doesn't carry attribute y

but the xmlParserCtxtPtr.valid flag doesn't get unset (in the case of
parsing while validating; when post-validating, I get 1 returned by
xmlValidateDocument).

I had a look at the code, and see where the error message comes from, but
don't see where the document is marked invalid. Am I missing something,
or is there some reason that this behaves this way?

(I'm not using namespaces.)

Thanks,

Harry
----------------------------------------------------------------------
Harry Blundell Halcyon Inc. URL: http://www.HalcyonInc.com
2300 Yonge St., Suite 1801, Box 2419, Toronto ON M4P 1E4, Canada.
PHONE: 416-932-4631 FAX: 416-932-4711 EMAIL: harry@HalcyonInc.com

----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Nov 06 2000 - 22:43:22 EST