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 42 of file xmlparser.hpp.
| XmlParser::XmlParser | ( | ) |
| void XmlParser::clearLastError | ( | ) |
Method to clear the last error.
This method clears the last error string
| QString XmlParser::lastError | ( | ) | const |
Last error retrieving method.
| 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 |
| 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 |
QString XmlParser::m_lastError [protected] |
String descripting the last error that occured.
Definition at line 51 of file xmlparser.hpp.
© 2000-2025 - www.developpez.com