diff options
| author | 2015-12-09 12:00:31 +0000 | |
|---|---|---|
| committer | 2015-12-19 02:40:22 +0000 | |
| commit | f4c79ca075042b834ba04adbd32b1973245089a0 (patch) | |
| tree | 8a6d98a8184fbba82f69784bc3bf07d1cbca1009 /src/modules/objects/KvsObject_xmlreader.cpp | |
| parent | src/modules typos: capitalize, formatting, consistency and syntax fixes (diff) | |
| download | KVIrc-f4c79ca075042b834ba04adbd32b1973245089a0.tar.gz KVIrc-f4c79ca075042b834ba04adbd32b1973245089a0.tar.bz2 KVIrc-f4c79ca075042b834ba04adbd32b1973245089a0.zip | |
src/modules: typos, consistency capitalize, fomatting and indenting fixes
these contains in addition the whitespace changes
Diffstat (limited to 'src/modules/objects/KvsObject_xmlreader.cpp')
| -rw-r--r-- | src/modules/objects/KvsObject_xmlreader.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/modules/objects/KvsObject_xmlreader.cpp b/src/modules/objects/KvsObject_xmlreader.cpp index 8cf692938..bda1f651f 100644 --- a/src/modules/objects/KvsObject_xmlreader.cpp +++ b/src/modules/objects/KvsObject_xmlreader.cpp @@ -38,11 +38,11 @@ @type: class @short: - A simple xml document parser + A simple XML document parser @inherits: [class]object[/class] @description: - This class implements a really simple xml document parser. + This class implements a really simple XML document parser. You will usually derive your own class from this one and reimplement some of the events that it triggers. You will typically reimplement [classfnc:xmlreader]$onElementStart[/classfnc]() @@ -64,59 +64,51 @@ in the document, user abort etc...). If this function return $false then you can call $lastError() to obtain a descriptive error message. - !fn: <string> $lastError() Returns the last error occurred inside the parser. You will typically call this function when $parse() above returns $false. - !fn: <boolean> $onDocumentStart() This function is called when the document parsing starts. You can reimplement it in order to handle this notification. You should return $true if you want document parsing to continue and $false if you want it to be aborted. The default implementation does nothing besides returning $true. - !fn: <boolean> $onDocumentEnd() This function is called when the document parsing terminates successfully. You can reimplement it in order to handle this notification. You should return $true if you want document parsing to continue and $false if you want it to be aborted. The default implementation does nothing besides returning $true. - !fn: <boolean> $onElementStart(<qualified_name:string>,<attributes:hash>,<namespace:string>,<local_name:string>) This function is called when an element opening tag is encountered. The <qualified_name> of the tag is passed as the first parameter. The <attributes> are passed in the form of a hash with attribute values indexed by their names. When the <qualified_name> contains a namespace then it is also reported - in the splitted <namespace> <local_name> pair. + in the split <namespace> <local_name> pair. You should return $true if you want document parsing to continue and $false if you want it to be aborted. The default implementation does nothing besides returning $true. - !fn: <boolean> $onElementEnd(<qualified_name:string>,<namespace:string>,<local_name:string>) This function is called when an element closing tag is encountered. The <qualified_name> of the tag is passed as the first parameter. When the <qualified_name> contains a namespace then it is also reported - in the splitted <namespace> <local_name> pair. + in the split <namespace> <local_name> pair. You should return $true if you want document parsing to continue and $false if you want it to be aborted. The default implementation does nothing besides returning $true. - !fn: <boolean> $onText($0 = <text:string>) This function is called when a chunk of text is encountered inside the document. The parsed <text> chunk is passed as the first parameter. You should return $true if you want document parsing to continue and $false if you want it to be aborted. The default implementation does nothing besides returning $true. - !fn: <boolean> $onWarning(<message:string>) This function is called when the parser generates a recoverable error. The error <message> is passed as the first parameter. You should return $true if you want document parsing to continue and $false if you want it to be aborted. The default implementation does nothing besides returning $true. - !fn: <boolean> $onError(<message:string>) This function is called when the parser generates an unrecoverable error. The error <message> is passed as the first parameter. |
