returns the last occured error or false when all errors have been returned
API Tags:
| Return: | latest error message or false |
Returns Array of Errors occured or false
API Tags:
| Return: | array of error messages or false |
return the XMLDOC Object if succesfully parsed otherwise false
API Tags:
boolean loadFile(
$filename
$filename
)
|
|
Load a String to be parsed from a xml Document File
Parameters:
|
$filename |
$filename: |
- string filename to be set
|
Parse the String and create an xmlDoc Object
API Tags:
void registerEvent(
$event
$event, $functionname
$functionname
)
|
|
registerEvent - registers a functionname to be exucted when event is fired
currently supported events: XPE_ON_PARSE_DEF (0); // Event On Parsing <? xml .. String XPE_ON_PARSE_DTD (1); // On Parsing DTD XPE_ON_PARSE_TAG (2); // On Parsing TagName XPE_ON_PARSE_ATT (3); // On Parsing Attribute String XPE_ON_PARSE_CDT (4); // On Parsing CDATA XPE_ON_PARSE_NOD (5); // On Node Parsing Completed Object XPE_ON_PARSE_CMT (6); // On Parsing a Comment XPE_ON_PARSE_XSP (7); // On Parsing XML Specific Tags <?;
User-Defined Eventhandlers will be called with two parameters :
- &$data - relevant information for event (e.g. the unparsed DOCTYPE string in the XPE_ON_PARSE_DTD event)
- &$node - reference to Node Object
EventHandlers should be considered for "PreProcessing Data" if Events are handled by XMLPARSER themselves FullProcessing - The Following Events are currently not handled by the XMLPARSER
- XPE_ON_PARSE_DTD (an event is fired providing the DOCTYPE string that otherwise is ignored by the Parser and the reference to the xmlDoc-object and the parser object-ref)
- XPE_ON_PARSE_CMT (an event is fired providing the comment-tag string that otherwise is ignored by the Parser and the reference to the xmlDoc (or Node)-object and the parser object-ref )
- XPE_ON_PARSE_XSP (an event is fired providing the special XML-tag string that otherwise is ignored by the Parser and the reference to the xmlDoc-object and the parser object-ref )
Post-Processing Events : - XPE_PN_PARSE_NOD (an event is fired providing an empty string (no unparsed stringdata left) and the reference to the node-object and the parser object-ref)
All Other Events are to be used for PreProcessing Purposes and will be provided the relavant string-data, a null var , and the parser reference
Parameters:
|
$event |
$event: |
|
|
$functionname |
$functionname: |
|
API Tags:
void setString(
$string
$string
)
|
|
Set String to be parsed
Parameters:
void setUida(
mixed
$uida, $uida
$node-
)
|
|
setUida - sets the "unique ID Attribute"-name
that is used for GetNodeById, SetId etc of XMLNode/Doc Objects a uida usually is "id" but sometimes in xml may be something like "recordno", "uid" ...
Parameters:
|
$uida |
$node-: |
- set the "unique ID Attribute"-name to which the parser should listen to call >setId()
|