NXmlSchemaParser Class Reference

NXmlSchemaParser class defines the basic operations for Xml Schema data definition parser. More...

Inheritance diagram for NXmlSchemaParser:

NXmlAbstractParser NObject

List of all members.

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.


Detailed Description

NXmlSchemaParser class defines the basic operations for Xml Schema 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 50 of file nxmlschemaparser.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 74 of file nxmlschemaparser.cpp.

References NXmlError::getLastError(), NXmlAbstractParser::m_url, NString::toChar(), NXmlException::XML_INIT_ERROR, 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 105 of file nxmlschemaparser.cpp.

References NXmlError::getLastError(), NString::length(), NString::toChar(), NXmlException::XML_INIT_ERROR, and NXmlException::XML_PARSER_ERROR.

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 136 of file nxmlschemaparser.cpp.

References NXmlError::getLastError(), NFile::handle(), NString::toChar(), NException::XML, NXmlException::XML_INIT_ERROR, and NXmlException::XML_PARSER_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