Siemens SINUMERIK 808D Function Manual page 248

Hide thumbs Also See for SINUMERIK 808D:
Table of Contents

Advertisement

Tag identifier
XML_PARSER Continued
XML_PARSER Continued
248
Meaning
The parser also supplies variables so that the call-back functions can access the event
data.
startElementHandler:
Function parameters
tag_name
- tag name
num
- number of attributes found
System variables
$xmlAttribute
String array that contains the 0-num attribute name range.
$xmlValue
String array that contains the 0-num attribute value range.
Example:
<function_body name="startElementHandler" return="true"
parameter="tag_name, num">
<print text="attribute name %s"> $xmlAttribute[0]</print>
<print text="attribute value %s"> $xmlValue [0]</print>
</function_body>
endElementHandler:
Function parameters
tag_name
- tag name
Example:
<function_body name="endElementHandler" parameter="tag_name">
<print text="name %s"> tag_name </print>
</function body>
charactersHandler:
System variables
$xmlCharacters
$xmlCharactersStart
$xmlCharactersLength
Example:
<function_body name="charactersHandler" return="true" >
<print text="chars %s"> $xmlCharacters </print>
</function_body>
documentHandler:
Function parameters
state
1 start document, 2 end document
errorHandler:
System variables
$xmlErrorString
Contains the invalid line (system variable)
Example:
<function_body name="errorHandler" >
<print text="error %s">$xmlErrorString</print>
</function_body>
Call-back result:
$return
If 1 (true), the parser continues parsing the file
String with data
Always 0
Number of bytes
Function Manual
01/2017

Advertisement

Table of Contents
loading

Table of Contents