#include <gxXmlElementSpec.h>
Public Member Functions | |
| gxXmlElementSpec (const char *specString) | |
| virtual | ~gxXmlElementSpec () |
| void | initialize (const char *specString) |
| bool | isValidAttributeName (const char *attrName) |
| Verifies that this element accepts the supplied attribute name. | |
| bool | isValidAttribute (gxXmlAttribute &attr) |
| Verifies that this element accepts the supplied attribute. | |
| bool | areValidAttributes (gxXmlElement &element) |
| Verifies that a given element instance contains no invalid attributes. | |
| bool | hasRequiredAttributes (gxXmlElement &element) |
| Verifies that a given element instance has all required attributes. | |
| std::string | getLastErrorMessage () |
Public Attributes | |
| bool | isRoot |
| Specifies whether this is the root element of the doc. | |
| std::string | name |
| Element name. | |
Classes | |
| class | AttrSpec |
This is much simpler than full DTD-style validation, however it catches some of the more obvious errors during Expat or SAX style parsing.
|
|
|
|
|
|
|
|
Verifies that a given element instance contains no invalid attributes.
|
|
|
|
|
|
Verifies that a given element instance has all required attributes.
|
|
|
|
|
|
Verifies that this element accepts the supplied attribute.
|
|
|
Verifies that this element accepts the supplied attribute name.
|
|
|
Specifies whether this is the root element of the doc.
|
|
|
Element name.
|
1.4.5