===== Le module QtXmlPatterns =====
Le module QtXmlPatterns fournit le support de Path, XQuery, XSLT et XML Schema validation.
==== Classes ====
| [[QAbstractMessageHandler]] | Interface de fonction de rappel (callback) pour la gestion des messages |
| [[QAbstractUriResolver]] | Interface de fonction de rappel pour résoudre des Uniform Resource Identifiers (URI) |
| [[QAbstractXmlNodeModel]] | Classe de base d'abstraction pour modéliser des données non XML afin qu'elles ressemblent à du XML pour [[QXmlQuery]] |
| [[QAbstractXmlReceiver]] | Interface de fonction de rappel pour transformer la sortie d'un [[QXmlQuery]] |
| [[QSimpleXmlNodeModel]] | Implémentation de [[QAbstractXmlNodeModel]] suffisante pour la majorité des cas communs |
| [[QSourceLocation]] | Identifie un endroit dans une ressource par une URI, ligne et colonne |
| [[QXmlFormatter]] | Implémentation de [[QXmlSerializer]] pour transformer une sortie de XQuery en XML correctement formaté |
| [[QXmlItem]] | Contient soit un nœud XML soit une valeur atomique |
| [[QXmlName]] | Représente le nom d'un nœud XML d'une manière efficace et tenant compte de l'espace de nom |
| [[QXmlNamePool]] | Table de chaînes partagées référencées par des instances de [[QXmlName]] |
| [[QXmlNodeModelIndex]] | Identifie un noeud dans un modèle de nœud XML sous-classé depuis [[QAbstractXmlNodeModel]] |
| [[QXmlQuery]] | Effectue des requêtes XQuery sur des données XML ou non XML si elles sont modelées de telle sorte qu'elles ressemblent à du XML |
| [[QXmlResultItems]] | Itère dans les résultats de l'évaluation d'une XQuery dans [[QXmlQuery]] |
| [[QXmlSchema]] | Chargement et validant d'un W3C XML Schema |
| [[QXmlSchemaValidator]] | Valide un document d'une instance XML avec un W3C XML Schema |
| [[QXmlSerializer]] | Implémentation de [[QAbstractXmlReceiver][ pour transformer une sortie XQuery en XML non formaté |
Pour inclure les définitions des classes du module, utilisez la directive suivante :
#include
Pour lier votre application à ce module, ajoutez cette ligne dans votre fichier [[qmake-manual#qmake|qmake]] ''.pro'' :
QT += xmlpatterns
Ce module fait partie des éditions [[full-framework-edition-classes|complète]] et [[opensourceedition|Open Source]] de Qt.
=== Pour aller plus loin ===
Des aperçus généraux de XQuery et de XShema peuvent être trouvés dans le document [[xmlprocessing|Utiliser les technologies XML]].
Une introduction au langage XQuery peut être trouvé dans [[xquery-introduction|un court chemin vers XQuery]].
=== Information de licence ===
L'implémentation de XML Schema fournie par ce module contient le fichier ''xml.xsd'' (situé dans ''src/xmlpatterns/schema/schemas''), licencié sous les termes suivants. Ce module est toujours construit avec le support de XML Schema.
> W3C Copyright SOFTWARE NOTICE AND LICENSE
>
> This license came from: http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
>
> This work (and included software, documentation such as READMEs or other related items) is being provided by the copyright holders under the following license. By obtaining, using and/or copying this work, you (the licensee) agree that you have read, understood et will comply with the following terms and conditions.
>
> Permission to copy, modify et distribute this software and its documentation, with or without modification, for any purpose and without fee or royalty is hereby granted, provided that you include the following on ALL copies of the software and documentation or portions thereof, including modifications:
>
> 1. The full text of this NOTICE in a location viewable to users of the redistributed or derivative work. 2. Any pre-existing intellectual property disclaimers, notices or terms and conditions. If none exist, the W3C Software Short Notice should be included (hypertext is preferred, text is permitted) within the body of any redistributed or derivative code. 3. Notice of any changes or modifications to the files, including the date changes were made. (We recommend you provide URIs to the location from which the code is derived.)
>
> THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
>
> COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR DOCUMENTATION.
>
> The name and trademarks of copyright holders may NOT be used in advertising or publicity pertaining to the software without specific, written prior permission. Title to copyright in this software and any associated documentation will at all times remain with copyright holders.
[ Précédent : [[qtxml|le module QtXml]] ]
[ [[modules|Tous les modules de Qt]] ]
[ Suivant : [[phonon-module|le module Phonon]] ]
==== Remerciements ====
Merci à pour la traduction et à pour la relecture !