xml.Catalog¶
An xml.Catalog class represents the OASIS XML catalog used for the validation process of the current job.
-
class
xml.Catalog¶ Proper instances of this class will be created within RaptorXML only, instantiation from script code will throw a
NotImplementedErrorexception.
Class methods¶
-
classmethod
xml.Catalog.create_from_buffer(type cls, buf, **kargs)¶ Returns a tuple with an
xml.Catalogandxml.ErrorLogobject. Constructs a newxml.Catalogobject after parsing the XML content in the given buffer. Any errors and warnings reported during the validation can be accessed through the returnedxml.ErrorLogobject.
-
classmethod
xml.Catalog.create_from_url(type cls, url, **kargs)¶ Returns a tuple with an
xml.Catalogandxml.ErrorLogobject. Constructs a newxml.Catalogobject after parsing the XML content retrieved from the given url. Any errors and warnings reported during the validation can be accessed through the returnedxml.ErrorLogobject.
-
classmethod
xml.Catalog.root_catalog(type cls)¶ Returns an
xml.Catalogobject which represents the global root catalog.
Methods¶
-
xml.Catalog.resolve_external_identifier(public=None, system=None)¶ Returns a string representing the resolved URI after performing External Identifier resolution.
-
xml.Catalog.resolve_public(public, system)¶ Returns a string representing the resolved URI after performing public identifier resolution.
-
xml.Catalog.resolve_system(system)¶ Returns a string representing the resolved URI after performing resolution with the given system identifier.
-
xml.Catalog.resolve_uri(uri)¶ Returns a string representing the resolved URI after performing resolution with the given URI.
Special methods¶
__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__