Nektar++
|
Public Member Functions | |
def | __init__ (self, schemaBase) |
def | validate (self, stream) |
def | quit (self) |
Private Attributes | |
_validator | |
A RELAX NG validator built on top of lxml (http://lxml.de/validation.html#relaxng). Can validate against schemas written in the XML syntax.
Definition at line 215 of file validator.py.
def CellMLToNektar.validator.LxmlRelaxngValidator.__init__ | ( | self, | |
schemaBase | |||
) |
Initialise the RELAX NG validator. Parses the schema into memory, and constructs lxml's validator object. We are passed the path to the schema with no extension.
Definition at line 220 of file validator.py.
def CellMLToNektar.validator.LxmlRelaxngValidator.quit | ( | self | ) |
Providing for compatibility with RvpRelaxngValidator; does nothing.
Definition at line 248 of file validator.py.
def CellMLToNektar.validator.LxmlRelaxngValidator.validate | ( | self, | |
stream | |||
) |
Validate an XML document, returning a boolean. stream should be a file-like object containing the document to be validated. Returns True iff the document was valid.
Definition at line 234 of file validator.py.
References CellMLToNektar.validator.LxmlRelaxngValidator._validator, and CellMLToNektar.validator.LxmlRelaxngValidator.validate().
Referenced by CellMLToNektar.validator.LxmlRelaxngValidator.validate().
|
private |
Definition at line 232 of file validator.py.
Referenced by CellMLToNektar.validator.LxmlRelaxngValidator.validate().