Public Member Functions | |
NXmlParser (void) | |
Constructs a NXmlParser object. | |
~NXmlParser (void) | |
Destroys a NXmlParser object. | |
xmlDocPtr | parse (const NString &filename) |
Parse a Xml document. | |
xmlDocPtr | parse (const NString &buffer, const NString &url) |
Parse a Xml Document in memory. | |
xmlDocPtr | parse (const NFile *file, const NString &url) |
Parse a Xml Document pointed by a file object. |
Definition at line 48 of file nxmlparser.h.
xmlDocPtr parse | ( | const NString & | filename | ) | [virtual] |
Parse a Xml document.
filename | Filename to the document to be parsed |
Implements NXmlAbstractParser.
Definition at line 46 of file nxmlparser.cpp.
References NXmlError::getLastError(), NString::isNull(), NXmlAbstractParser::m_encoding, NDebug::print(), NString::toChar(), and NXmlException::XML_PARSER_ERROR.
Parse a Xml Document in memory.
buffer | The Xml Document to be parsed | |
url | The path/url to the definition data |
Implements NXmlAbstractParser.
Definition at line 71 of file nxmlparser.cpp.
References NString::isNull(), NString::length(), NXmlAbstractParser::m_encoding, and NString::toChar().
Parse a Xml Document pointed by a file object.
file | An open NFile object containing xml data | |
url | The path/url to the definition data |
Implements NXmlAbstractParser.
Definition at line 88 of file nxmlparser.cpp.
References NFile::handle(), NString::isNull(), NXmlAbstractParser::m_encoding, NString::toChar(), NException::XML, and NXmlException::XML_INIT_ERROR.