summaryrefslogtreecommitdiffstats
path: root/src/xmlpatterns/api/qxmlschemavalidator.cpp
diff options
context:
space:
mode:
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
{