A Xml parser //! More...
#include <xmlparser.hpp>
Public Member Functions | |
XmlParser () | |
bool | parse (const QString &xmlData) |
Parsing method from a string. //! | |
bool | parse (QFile &xmlFile) |
Parsing method from a file. //! | |
QString | lastError () const |
Last error retrieving method. //! | |
void | clearLastError () |
Method to clear the last error. //! | |
Protected Attributes | |
QString | m_lastError |
String descripting the last error that occured. |
A Xml parser //!
This parser is used to parse a string or a file containing Xml. The main method to use is the parse() methode, which take the Xml string or file.
Definition at line 40 of file xmlparser.hpp.
QE_BEGIN_NAMESPACE XmlParser::XmlParser | ( | ) |
Definition at line 25 of file xmlparser.cpp.
void XmlParser::clearLastError | ( | ) |
Method to clear the last error. //!
This method clears the last error string
Definition at line 106 of file xmlparser.cpp.
QString XmlParser::lastError | ( | ) | const |
Last error retrieving method. //!
Definition at line 101 of file xmlparser.cpp.
bool XmlParser::parse | ( | const QString & | xmlData | ) |
Parsing method from a string. //!
Main method of the XmlParser class, it parse a Xml string.
xmlData | String containing the Xml to parse |
Definition at line 34 of file xmlparser.cpp.
bool XmlParser::parse | ( | QFile & | xmlFile | ) |
Parsing method from a file. //!
Main method of the XmlParser class, it parse a Xml file. The file must have an authorized extension.
xmlFile | File containing the Xml to parse |
Definition at line 54 of file xmlparser.cpp.
QString XmlParser::m_lastError [protected] |
String descripting the last error that occured.
Definition at line 49 of file xmlparser.hpp.
Les sources présentées sur cette page sont libres de droits et vous pouvez les utiliser à votre convenance. Par contre, la page de présentation constitue une œuvre intellectuelle protégée par les droits d'auteur. Copyright © 2010 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site ni de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon vous encourez selon la loi jusqu'à trois ans de prison et jusqu'à 300 000 € de dommages et intérêts.