RXmlEngDOMParser Class Reference
Link against: xmlengineDOM.lib
#include <xmlengdomparser.h>
Detailed Description
DOM parser class implements methods for parsing XML data.
Parse XML data in one chunk. Data can be parsed from file or memory buffer.
Sample code for parsing from buffer:
Sample code for parsing from file:
- Dll XmlEngineDOM.lib
- Since:
- S60 v3.1
Constructor & Destructor Documentation
IMPORT_C RXmlEngDOMParser::RXmlEngDOMParser | ( | | ) | |
|
Member Function Documentation
IMPORT_C void RXmlEngDOMParser::Close | ( | | ) | |
|
|
Closes the parser.
- Since:
- S60 v3.2
|
|
Creates document from parsed chunks of data.
Should be called after parsing of allchunks. Ownership over returned RXmlEngDocument object is transferred to the caller of the method. - Since:
- S60 v3.2
- Returns:
- RXmlEngDocument created document.
- Leave:
- KXmlEngErrParsing or one of general codes (e.g. KErrNoMemory)
|
IMPORT_C TInt RXmlEngDOMParser::GetLastParsingError | ( | | ) | |
|
|
Return last parsing error code.
- Since:
- S60 v3.2
- Returns:
- positive number
- Note:
- Error codes are positive numbers. User can find them in XmlEngDErrors.h
|
|
Opens the parser.
- Since:
- S60 v3.2
- Parameters:
-
| aDOMImpl | DOM implementation object |
- Returns:
- KErrNone if succeed.
|
IMPORT_C void RXmlEngDOMParser::ParseChunkL | ( | const TDesC8 & | aBuffer | ) | |
|
|
Parses chunk of XML data from memory buffer and builds DOM RXmlEngDocument.
- Since:
- S60 v3.2
- Parameters:
-
- Leave:
- KXmlEngErrParsing or one of general codes (e.g. KErrNoMemory)
|
IMPORT_C RXmlEngDocument RXmlEngDOMParser::ParseFileL | ( | const TDesC & | aFileName, | | | TUint | aChunkSize = 0 | | ) | |
|
|
Parses XML file and builds DOM RXmlEngDocument.
- Since:
- S60 v3.2
- Parameters:
-
| aFileName | File name | | aChunkSize | Size of chunk (if 0 chunks won't be used) |
- Returns:
- Document handle
- Leave:
- KXmlEngErrParsing or one of general codes (e.g. KErrNoMemory)
|
IMPORT_C RXmlEngDocument RXmlEngDOMParser::ParseFileL | ( | RFs & | aRFs, | | | const TDesC & | aFileName, | | | TUint | aChunkSize = 0 | | ) | |
|
|
Parses XML file and builds DOM RXmlEngDocument.
- Since:
- S60 v3.2
- Parameters:
-
| aRFs | File server session | | aFileName | File name | | aChunkSize | Size of chunk (if 0 chunks won't be used) |
- Returns:
- Document handle
- Leave:
- KXmlEngErrParsing or one of general codes (e.g. KErrNoMemory)
|
IMPORT_C RXmlEngDocument RXmlEngDOMParser::ParseL | ( | const TDesC8 & | aBuffer | ) | |
|
|
Parses XML data from memory buffer and builds DOM RXmlEngDocument without chunks.
- Since:
- S60 v3.1
- Parameters:
-
- Returns:
- Document handle
- Leave:
- KXmlEngErrParsing code (besides system I/O error codes)
|
The documentation for this class was generated from the following file: