Public Types | |
enum | XmlSchema { XMLNOPARSING, XMLSCHEMA, XMLDTD } |
Enumerates the supported data defintion parsers. More... | |
Public Member Functions | |
NXmlAbstractParser (void) | |
Constructs a NXmlAbstractParser object. | |
virtual | ~NXmlAbstractParser (void) |
Destroys a NXmlAbstractParser object. | |
void | setEncoding (const NString &encoding) |
Sets the encoding of the document to be parsed. | |
NString | getEncoding (void) const |
Gets the encoding set for the document to be parsed. | |
virtual void | setDefinitionUrl (const NString &url) |
Sets the path/url to the definition data. | |
NString | getDefinitionUrl (void) const |
Gets the path/url to the defintion data. | |
virtual xmlDocPtr | parse (const NString &filename)=0 |
Parse a Xml document. | |
virtual xmlDocPtr | parse (const NString &buffer, const NString &url)=0 |
Parse a Xml Document in memory. | |
virtual xmlDocPtr | parse (const NFile *file, const NString &url)=0 |
Parse a Xml Document pointed by a file object. | |
Protected Attributes | |
NString | m_encoding |
NString | m_url |
This class is used internally only. DO NOT used on applications
Definition at line 42 of file nxmlabstractparser.h.
enum XmlSchema |
Enumerates the supported data defintion parsers.
Definition at line 47 of file nxmlabstractparser.h.
void setEncoding | ( | const NString & | encoding | ) |
Sets the encoding of the document to be parsed.
encoding | The name of the encoding of the document |
Definition at line 41 of file nxmlabstractparser.cpp.
References m_encoding.
NString getEncoding | ( | void | ) | const |
Gets the encoding set for the document to be parsed.
Definition at line 46 of file nxmlabstractparser.cpp.
References m_encoding.
void setDefinitionUrl | ( | const NString & | url | ) | [virtual] |
Sets the path/url to the definition data.
url | The url/path to the definition data |
Definition at line 51 of file nxmlabstractparser.cpp.
References m_url.
Referenced by NXmlReader::load().
NString getDefinitionUrl | ( | void | ) | const |
Gets the path/url to the defintion data.
Definition at line 56 of file nxmlabstractparser.cpp.
References m_url.
virtual xmlDocPtr parse | ( | const NString & | filename | ) | [pure virtual] |
Parse a Xml document.
filename | Filename to the document to be parsed |
Implemented in NXmlParser, and NXmlSchemaParser.
Referenced by NXmlReader::load().
Parse a Xml Document in memory.
buffer | The Xml Document to be parsed | |
url | The path/url to the definition data |
Implemented in NXmlParser, and NXmlSchemaParser.
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 |
Implemented in NXmlParser, and NXmlSchemaParser.
NString m_encoding [protected] |
Document encoding
Definition at line 118 of file nxmlabstractparser.h.
Referenced by getEncoding(), NXmlParser::parse(), and setEncoding().
Document url
Definition at line 119 of file nxmlabstractparser.h.
Referenced by getDefinitionUrl(), NXmlSchemaParser::parse(), and setDefinitionUrl().