<< Click to Display Table of Contents >> Navigation: 3. Script Language > XML-Parser > XML. - after parse > XML-Parser * XML. (after Parse) |
MiniRobotLanguage (MRL)
XML.Flags to Text
XML.ftxt
Convert numeric XML-Data Flags to textual readable flags
Intention
This command is used to convert a numeric expression into the textual equivalent of the XML-Data-Flags.
Example:
XML.ftxt|2|$$ERG
PRT.$$ERG
XML.ftxt|127|$$ERG
PRT.$$ERG
If you use
XML.ftxt
PRT.$$ERG
Then the command will use the flags from the actual position as input.
Therefore this operation will need a XML-File to be parsed or loaded first.
Syntax
XML.Flags to Text[|P2][|P3]
Parameter Explanation
P2 - (optional) numeric parameter that is converted to the equivalent flags.
If omitted, the current position's flags are being used.
P3 - (optional) Variable for the result. If omitted TOS is used..
Example
'***********************************
'
'***********************************
'Prototype für IML.
$$PRO=Open Bracket
$$TXT=a real Open Bracket
$$XMF=?pfad\SQ_XML.txt
NEF.$$XMF
MBX.File $$XMF was not found!
GTO.enx
EIF.
' Now we are going to parse it
XML.Load File|$$XMF
' We check if there are errors
JIT.Lab_Err
' We get the "actual position" - after parsing.
XML.get pos|$$POS
PRT.Actual Position after Parsing is: $$POS
' Hier gehts los
PRT.------------------------
XML.dnob|$$ERG
XML.get pos|$$POS
PRT.Actual Position is: $$POS
XML.ftxt
PRT.Result of Position $$POS: $$000
PRT.------------------------
XML.ftxt|1234|$$ERG
PRT.Result: $$ERG
PRT.------------------------
PRT. We are going to Dump these Bytes.
PRT.-------------------------
XML.Dump|($$ERG-5)|($$ERG+5)
PRT.------------------------
MBX.!
:enx
ENR.
'-----------------------------------------------------------
' Error Handler
:Lab_Err
XML.get error|$$ERT
DBP.$$ERT
ENR.
ENR.
This is the result of the sample script:
Remarks
-
Limitations:
-
See also:
• ! Smart Package Robot 's XML-Features
• XML. - eXtended Markup Language