diff options
author | Tobias Koenig <tokoe@kde.org> | 2009-05-21 13:16:40 (GMT) |
---|---|---|
committer | Tobias Koenig <tokoe@kde.org> | 2009-05-21 13:16:40 (GMT) |
commit | b24611f14453e6b870e25bdc3edcd4f6447ae87e (patch) | |
tree | daf9eccd3c8a43cd1d37fa4a74df5ca53592df82 /src/xmlpatterns | |
parent | be0285b193d23fcf28ad84a73895ad15ece18e4c (diff) | |
download | Qt-b24611f14453e6b870e25bdc3edcd4f6447ae87e.zip Qt-b24611f14453e6b870e25bdc3edcd4f6447ae87e.tar.gz Qt-b24611f14453e6b870e25bdc3edcd4f6447ae87e.tar.bz2 |
Added code snippets for QXmlSchemaValidator and referenced them from api docs
Diffstat (limited to 'src/xmlpatterns')
-rw-r--r-- | src/xmlpatterns/api/qxmlschemavalidator.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/xmlpatterns/api/qxmlschemavalidator.cpp b/src/xmlpatterns/api/qxmlschemavalidator.cpp index a69b081..b72b1ef 100644 --- a/src/xmlpatterns/api/qxmlschemavalidator.cpp +++ b/src/xmlpatterns/api/qxmlschemavalidator.cpp @@ -106,6 +106,10 @@ void QXmlSchemaValidator::setSchema(const QXmlSchema &schema) Returns \c true if the XML instance document is valid according the schema, \c false otherwise. + + Example: + + \snippet doc/src/snippets/qxmlschemavalidator/main.cpp 2 */ bool QXmlSchemaValidator::validate(const QByteArray &data, const QUrl &documentUri) const { @@ -122,6 +126,10 @@ bool QXmlSchemaValidator::validate(const QByteArray &data, const QUrl &documentU Returns \c true if the XML instance document is valid according the schema, \c false otherwise. + + Example: + + \snippet doc/src/snippets/qxmlschemavalidator/main.cpp 0 */ bool QXmlSchemaValidator::validate(const QUrl &source) const { @@ -143,6 +151,10 @@ bool QXmlSchemaValidator::validate(const QUrl &source) const Returns \c true if the XML instance document is valid according the schema, \c false otherwise. + + Example: + + \snippet doc/src/snippets/qxmlschemavalidator/main.cpp 1 */ bool QXmlSchemaValidator::validate(QIODevice *source, const QUrl &documentUri) const { |