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
NotImplementedError
exception.
Class methods¶
-
classmethod
xml.Catalog.
create_from_buffer
(type cls, buf, **kargs)¶ Returns a tuple with an
xml.Catalog
andxml.ErrorLog
object. Constructs a newxml.Catalog
object after parsing the XML content in the given buffer. Any errors and warnings reported during the validation can be accessed through the returnedxml.ErrorLog
object.
-
classmethod
xml.Catalog.
create_from_url
(type cls, url, **kargs)¶ Returns a tuple with an
xml.Catalog
andxml.ErrorLog
object. Constructs a newxml.Catalog
object after parsing the XML content retrieved from the given url. Any errors and warnings reported during the validation can be accessed through the returnedxml.ErrorLog
object.
-
classmethod
xml.Catalog.
root_catalog
(type cls)¶ Returns an
xml.Catalog
object 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__