Public Member Functions | |
NXmlSchemaParser (void) | |
Constructs a NXmlSchemaParser object. | |
~NXmlSchemaParser (void) | |
Destroys a NXmlSchemaParser 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 50 of file nxmlschemaparser.h.
xmlDocPtr parse | ( | const NString & | filename | ) | [virtual] |
Parse a Xml document.
filename | Filename to the document to be parsed |
Implements NXmlAbstractParser.
Definition at line 74 of file nxmlschemaparser.cpp.
References NXmlError::getLastError(), NXmlAbstractParser::m_url, NString::toChar(), NXmlException::XML_INIT_ERROR, 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 105 of file nxmlschemaparser.cpp.
References NXmlError::getLastError(), NString::length(), NString::toChar(), NXmlException::XML_INIT_ERROR, and NXmlException::XML_PARSER_ERROR.
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 136 of file nxmlschemaparser.cpp.
References NXmlError::getLastError(), NFile::handle(), NString::toChar(), NException::XML, NXmlException::XML_INIT_ERROR, and NXmlException::XML_PARSER_ERROR.