IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

Qt XML C++ Classes

The Qt XML module provides C++ implementations of the SAX and DOM standards for XML.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

Qt XML C++ Classes

The Qt XML module provides C++ implementations of the SAX and DOM standards for XML.

Classes

  • QDomAttr: The QDomAttr class represents one attribute of a QDomElement.

  • QDomCDATASection: The QDomCDATASection class represents an XML CDATA section.

  • QDomCharacterData: The QDomCharacterData class represents a generic string in the DOM.

  • QDomComment: The QDomComment class represents an XML comment.

  • QDomDocument: The QDomDocument class represents an XML document.

  • QDomDocumentFragment: The QDomDocumentFragment class is a tree of QDomNodes which is not usually a complete QDomDocument.

  • QDomDocumentType: The QDomDocumentType class is the representation of the DTD in the document tree.

  • QDomElement: The QDomElement class represents one element in the DOM tree.

  • QDomEntity: The QDomEntity class represents an XML entity.

  • QDomEntityReference: The QDomEntityReference class represents an XML entity reference.

  • QDomImplementation: The QDomImplementation class provides information about the features of the DOM implementation.

  • QDomNamedNodeMap: The QDomNamedNodeMap class contains a collection of nodes that can be accessed by name.

  • QDomNode: The QDomNode class is the base class for all the nodes in a DOM tree.

  • QDomNodeList: The QDomNodeList class is a list of QDomNode objects.

  • QDomNotation: The QDomNotation class represents an XML notation.

  • QDomProcessingInstruction: The QDomProcessingInstruction class represents an XML processing instruction.

  • QDomText: The QDomText class represents text data in the parsed XML document.

  • QXmlAttributes: The QXmlAttributes class provides XML attributes.

  • QXmlContentHandler: The QXmlContentHandler class provides an interface to report the logical content of XML data.

  • QXmlDTDHandler: The QXmlDTDHandler class provides an interface to report DTD content of XML data.

  • QXmlDeclHandler: The QXmlDeclHandler class provides an interface to report declaration content of XML data.

  • QXmlDefaultHandler: The QXmlDefaultHandler class provides a default implementation of all the XML handler classes.

  • QXmlEntityResolver: The QXmlEntityResolver class provides an interface to resolve external entities contained in XML data.

  • QXmlErrorHandler: The QXmlErrorHandler class provides an interface to report errors in XML data.

  • QXmlInputSource: The QXmlInputSource class provides the input data for the QXmlReader subclasses.

  • QXmlLexicalHandler: The QXmlLexicalHandler class provides an interface to report the lexical content of XML data.

  • QXmlLocator: The QXmlLocator class provides the XML handler classes with information about the parsing position within a file.

  • QXmlNamespaceSupport: The QXmlNamespaceSupport class is a helper class for XML readers which want to include namespace support.

  • QXmlParseException: The QXmlParseException class is used to report errors with the QXmlErrorHandler interface.

  • QXmlReader: The QXmlReader class provides an interface for XML readers (i.e. parsers).

  • QXmlSimpleReader: The QXmlSimpleReader class provides an implementation of a simple XML parser.

Detailed Description

Note that the module will not receive additional features anymore. For reading or writing XML documents iteratively (SAX), we recommend using Qt Core's QXmlStreamReader and QXmlStreamWriter classes. The classes are both easier to use and more compliant with the XML standard.

To include the definitions of the module's classes, use the following directive:

 
Sélectionnez
#include <QtXml>

To link against the module, add this line to your qmake .pro file:

 
Sélectionnez
QT += xml

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+