planemo.xml package

Submodules

planemo.xml.diff module

planemo.xml.diff.diff(x1, x2, reporter=None)[source]

Return 0 if and only if the XML has the same content.

planemo.xml.diff.text_compare(t1, t2)[source]
planemo.xml.diff.xml_compare(x1, x2, reporter=None)[source]

planemo.xml.validation module

Module describing abstractions for validating XML content.

planemo.xml.validation.get_validator(require=True)[source]

Return a XsdValidator object based on available dependencies.

class planemo.xml.validation.XsdValidator[source]

Bases: object

Class allowing validation of XML files against XSD schema.

enabled()[source]

Return True iff system has dependencies for this validator.

Return type:bool
validate(schema_path, target_path)[source]

Validate target_path against schema_path.

Return type:ValidationResult

Module contents