XmlException with REQUIRED_ATTRIBUTE_MISSING if a required attribute is absent. XmlException with FIXED_ATTRIBUTE_MISMATCH if a fixed attribute has an incorrect value.void validateDtdAttributes(
XmlDocument doc,
XmlElement root,
XmlInternalParseOptions options,
XmlParserLimits limits) @safeValidates #REQUIRED and #FIXED DTD attribute declarations for all elements.
Recursively walks the element tree and checks that:
#REQUIRED attributes are present.#FIXED attributes (if present) match their declared fixed value. doc | The document being validated. |
root | The root element to start validation from. |
options | Parser options (used for entity expansion in default values). |
limits | Parser limits. |
XmlException with REQUIRED_ATTRIBUTE_MISSING if a required attribute is absent. XmlException with FIXED_ATTRIBUTE_MISMATCH if a fixed attribute has an incorrect value.