[xml] validating node attributes against a DTD
- From: "Osawa, Daniel K" <daniel k osawa intel com>
- To: <xml gnome org>
- Subject: [xml] validating node attributes against a DTD
- Date: Tue, 14 Feb 2006 13:46:37 -0800
I need to remove invalid attributes from my XML tree and would like to
use the following function:
int xmlValidateAttributeDecl (xmlValidCtxtPtr ctxt,
xmlDocPtr doc,
xmlAttributePtr attr)
I have the xmlValidCtxtPtr, xmlDocPtr, and an xmlNodePtr at my disposal.
I would like to iterate through the list of xmlAttrPtrs provided by the
xmlNodePtr, and run xmlValidateAttributeDecl on each attribute so that I
can remove any invalid attributes I come across.
Is there an easy way of obtaining an xmlAttributePtr so that I could use
the xmlValidateAttributeDecl function?
Thanks,
Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]