Queryxml - Siemens SINUMERIK 840D sl Operating Manual

Integrate create myconfig - diff, expert, topo
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

EndWhile
EndIf
4.6.9.8

QueryXml

QueryXml("<path>", "<xpath>")
The QueryXml() function reads the contents of XML files that are on the runtime system
((RTS)) of the package execution.
The <path> argument specifies the XML file (with path and file names (file path)) from where
the content of an XML node should be read. Whereby, the file path can be specified fully
qualified, in accordance with the runtime system, or also relative to the package.
For Linux ((NCU)) the case sensitivity of the path is relevant, but not for Windows (PC, PCU).
The XPath expression in the <xpath> argument selects the XML node whose content should
be output. The case sensitivity for <xpath> is always relevant.
If the selected XML node was found by <xpath>, its content is returned as STRING. All other
XML nodes are ignored.
If the XML file or the specified node is not found, the function returns "Null".
Note
XML node
An XML node can be, for example, an element, an attribute or text.
Note
XML node <xpath> return
If several XML nodes selected by <xpath> are found, only the content of the first XML node
is returned.
Note
Reading files outside the runtime system
If files are read that are not located on the runtime system of the package execution, they can
be copied temporarily with the FileCopy() function to the runtime system, and then read.
Note
Use of environment variables
Environment variables of the runtime system can be used in the <path> argument.
Note
Return value "Null"
By testing the return value for "Null", it can be determined whether the function could not find
the file or the XML node.
SINUMERIK Integrate Create MyConfig - Diff, Expert, Topo
Operating Manual, 12/2017, A5E36537479B-AE
Create MyConfig - Expert
4.6 Script language
303

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents