EasyManua.ls Logo

Siemens SINUMERIK 808D - Page 322

Siemens SINUMERIK 808D
508 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Commissioning Manual
322 01/2017
Tag identifier
Meaning
XML_PARSER
Continued 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>
XML_PARSER
Continued
charactersHandler:
System variables
$xmlCharacters String with data
$xmlCharactersStart Always 0
$xmlCharactersLength Number of bytes
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

Table of Contents

Other manuals for Siemens SINUMERIK 808D

Related product manuals