Public Member Functions | |
NXmlReader (void) | |
Constructs a NXmlReader object. | |
~NXmlReader (void) | |
Destroys a NXmlReader object. | |
void | setSchema (NXmlAbstractParser::XmlSchema schema) |
Sets the data definition schema used for parsing the document. | |
NXmlAbstractParser::XmlSchema | getSchema (void) const |
Gets the data defintion schema used for parsing the document. | |
void | setEncoding (const NString &encoding) |
Sets the encoding of the document. | |
NString | getEncoding (void) const |
Gets the encoding of the document. | |
void | setDefinitionUrl (const NString &url) |
Sets the path/url to the data definition schema. | |
NString | getDefinitionUrl (void) const |
Gets the path/url to the data definition schema. | |
void | load (const NString &path) |
Load a xml document. | |
void | load (const NString &buffer, nint32 size) |
Load a xml document. | |
void | load (const NFile *file) |
Load a xml document. | |
NXmlDocument * | getDocument (void) |
Gets a NXmlDocument containing the parsed xml data. |
xmlreader.cpp, and xmlreader.h.
Definition at line 48 of file nxmlreader.h.
NXmlAbstractParser::XmlSchema getSchema | ( | void | ) | const |
Gets the data defintion schema used for parsing the document.
Definition at line 68 of file nxmlreader.cpp.
void setEncoding | ( | const NString & | encoding | ) |
Sets the encoding of the document.
encoding | The encoding of the document |
Definition at line 73 of file nxmlreader.cpp.
NString getEncoding | ( | void | ) | const |
Gets the encoding of the document.
Definition at line 78 of file nxmlreader.cpp.
void setDefinitionUrl | ( | const NString & | url | ) |
Sets the path/url to the data definition schema.
url | The path to the data definition schema |
Definition at line 82 of file nxmlreader.cpp.
NString getDefinitionUrl | ( | void | ) | const |
Gets the path/url to the data definition schema.
Definition at line 87 of file nxmlreader.cpp.
void load | ( | const NString & | path | ) |
Load a xml document.
path | The path of a file containing a xml document |
Definition at line 105 of file nxmlreader.cpp.
References NXmlAbstractParser::parse(), NXmlAbstractParser::setDefinitionUrl(), NXmlAbstractParser::XMLDTD, NXmlAbstractParser::XMLNOPARSING, and NXmlAbstractParser::XMLSCHEMA.
Load a xml document.
buffer | An in memory buffer containing a xml document | |
size | The size of the buffer |
Definition at line 152 of file nxmlreader.cpp.
References NXmlAbstractParser::parse(), NXmlAbstractParser::setDefinitionUrl(), NXmlAbstractParser::XMLDTD, NXmlAbstractParser::XMLNOPARSING, and NXmlAbstractParser::XMLSCHEMA.
void load | ( | const NFile * | file | ) |
Load a xml document.
file | An open NFile object containing a xml document |
Definition at line 199 of file nxmlreader.cpp.
References NXmlAbstractParser::parse(), NXmlAbstractParser::setDefinitionUrl(), NXmlAbstractParser::XMLDTD, NXmlAbstractParser::XMLNOPARSING, and NXmlAbstractParser::XMLSCHEMA.
NXmlDocument * getDocument | ( | void | ) |
Gets a NXmlDocument containing the parsed xml data.
Definition at line 92 of file nxmlreader.cpp.