NXmlParser Class Reference

NXmlParser class defines the basic operations for DTD Xml data definition parser. More...

Inheritance diagram for NXmlParser:

NXmlAbstractParser NObject

List of all members.

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.


Detailed Description

NXmlParser class defines the basic operations for DTD Xml data definition parser.

Note:
You must not use this class directly. It is used internally by the api
See also:
NXmlAbstractParser class documentation for details

Definition at line 48 of file nxmlparser.h.


Member Function Documentation

xmlDocPtr parse ( const NString filename  )  [virtual]

Parse a Xml document.

Parameters:
filename Filename to the document to be parsed
Returns:
A xmlDocPtr pointing to the document

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.

xmlDocPtr parse ( const NString buffer,
const NString url 
) [virtual]

Parse a Xml Document in memory.

Parameters:
buffer The Xml Document to be parsed
url The path/url to the definition data
Todo:
Removes the param URL.
Returns:
A xmlDocPtr pointing to the document

Implements NXmlAbstractParser.

Definition at line 71 of file nxmlparser.cpp.

References NString::isNull(), NString::length(), NXmlAbstractParser::m_encoding, and NString::toChar().

xmlDocPtr parse ( const NFile file,
const NString url 
) [virtual]

Parse a Xml Document pointed by a file object.

Parameters:
file An open NFile object containing xml data
url The path/url to the definition data
Todo:
Removes the param URL.
Returns:
A xmlDocPtr pointing to the document

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.


The documentation for this class was generated from the following files:
Generated on Wed Mar 5 23:10:37 2008 for NemesisUtilitiesSystem by  doxygen 1.5.4