Skip to content

PythonQt.Qt.QXmlSchema

QXmlSchema

PythonQtInstanceWrapper object

Native bases: PythonQtInstanceWrapper

Supplemental documentation: Qt 5 reference:

Detailed Description

The QXmlSchema class loads, compiles and validates W3C XML Schema files that can be used further for validation of XML instance documents via QXmlSchemaValidator.

The following example shows how to load a XML Schema file from the network and test whether it is a valid schema document:

    QUrl url("http://www.schema-example.org/myschema.xsd");

    QXmlSchema schema;
    if (schema.load(url) == true)
        qDebug() << "schema is valid";
    else
        qDebug() << "schema is invalid";

XML Schema Version

This class is used to represent schemas that conform to the XML Schema 1.0 specification.

Source: https://doc.qt.io/archives/qt-5.15/qxmlschema.html

Complete member index

Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.

Member Kind Signature Summary
__init__ function (self, *args: Any, **kwargs: Any) -> None Native constructor; consult class documentation for supported overloads. (shared captured text)
className function (self, *args: Any, **kwargs: Any) -> Any Return the classname of the object (shared captured text)
delete function (self, *args: Any, **kwargs: Any) -> Any Deletes the C++ object (at your own risk, my friend!) (shared captured text)
documentUri function (self) -> Any X.documentUri() -> PythonQt.QtCore.QUrl (shared captured text)
help function (self, *args: Any, **kwargs: Any) -> Any Shows the help of available methods for this class (shared captured text)
inherits function (self, *args: Any, **kwargs: Any) -> Any Returns if the class inherits or is of given type name (shared captured text)
isValid function (self) -> bool X.isValid() -> bool (shared captured text)
load function (self, source: Any, documentUri: Any) -> bool X.load(source, documentUri) -> bool (shared captured text)
messageHandler function (self) -> Any X.messageHandler() -> PythonQt.QtXmlPatterns.QAbstractMessageHandler (shared captured text)
namePool function (self) -> Any X.namePool() -> PythonQt.QtXmlPatterns.QXmlNamePool (shared captured text)
networkAccessManager function (self) -> Any X.networkAccessManager() -> PythonQt.QtNetwork.QNetworkAccessManager (shared captured text)
operator_assign function (self, other: Any) -> Any X.operator_assign(other) -> PythonQt.QtXmlPatterns.QXmlSchema (shared captured text)
setMessageHandler function (self, handler: Any) -> None Changes the [message handler](https://doc.qt.io/archives/qt-5.15/qabstractmessagehandler.html) for this [QXmlSchema](https://doc.qt.io/archives/qt-5.15/qxmlschema.html) to handler. (shared captured text)
setNetworkAccessManager function (self, networkmanager: Any) -> Any Sets the network manager to manager. (shared captured text)
setUriResolver function (self, resolver: Any) -> None Sets the URI resolver to resolver. (shared captured text)
uriResolver function (self) -> Any X.uriResolver() -> PythonQt.QtXmlPatterns.QAbstractUriResolver (shared captured text)