Package Products :: Package ZenUtils :: Module xmlutils :: Class XsdValidator |
[hide private]
[frames] | no frames]

# Class XsdValidator

source code

    object --+
             |
            XsdValidator

This validator uses lxml to validate XML files against schemas defined by XSD files.

Instance Methods | [hide private]
__init__(self, xsd_path) | source code
load_xsd(self, xsd_path) Load the XSD schema at `xsd_path`. | source code
validate_path(self, path) Determine whether the file at `path` is valid using the configured xml schema. | source code
validate_file(self, f) Determine whether a file is valid using the configured xml schema. | source code
check_path(self, path) This method will throw exceptions when trying to validate a path. | source code
check_file(self, xml_file) This method will throw exceptions when trying to validate a file. | source code

Method Details | [hide private]

### __init__(self, xsd_path) (Constructor) | source code
Overrides: object.__init__ (inherited documentation)