summaryrefslogtreecommitdiffstats
path: root/src/xmlpatterns/api/qxmlschemavalidator.cpp
diff options
context:
space:
mode:
authorTobias Koenig <tokoe@kde.org>2009-05-21 13:16:40 (GMT)
committerTobias Koenig <tokoe@kde.org>2009-05-21 13:16:40 (GMT)
commitb24611f14453e6b870e25bdc3edcd4f6447ae87e (patch)
treedaf9eccd3c8a43cd1d37fa4a74df5ca53592df82 /src/xmlpatterns/api/qxmlschemavalidator.cpp
parentbe0285b193d23fcf28ad84a73895ad15ece18e4c (diff)
downloadQt-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/api/qxmlschemavalidator.cpp')
-rw-r--r--src/xmlpatterns/api/qxmlschemavalidator.cpp12
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
{