<< Click to Display Table of Contents >> Navigation: 3. Script Language > XML-Parser > XML. - after parse > XML-Parser * XML. (after Parse) |
MiniRobotLanguage (MRL)
XML.Print
XML.prt
Pretty Print the whole XML-Data into a Variable or a debug console
Intention
This command will print the whole XML-Data into a Debug- Console window, or if a variable is given, into the variable.
It will try to produce XML-Text that is loadable into a text-editor program, by inserting
Linefeeds between the Tags.
XML.Print|$$END
$$FIL=?desktop\PrintOut.txt
DEL.$$FIL
CTF.$$FIL|$$END
if you omit the variable, the Printout will go into a debug console window.
XML.Print
Syntax
XML.Print[|P2]
Parameter Explanation
P2 - Variable to return the XML-Listing.
Example
'***********************************
'
'***********************************
'
$$XMF=?pfad\Small_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.Print
PRT.------------------------
XML.Print|$$END
$$FIL=?desktop\PrintOut.txt
DEL.$$FIL
CTF.$$FIL|$$END
MBX.!
:enx
ENR.
'-----------------------------------------------------------
' Error Handler
:Lab_Err
XML.get error|$$ERT
DBP.$$ERT
ENR.
This is the result of the sample script:
Additionally you will find a file caller "Printout.txt" on your desktop.
Remarks
-
Limitations:
-
See also:
• ! Smart Package Robot 's XML-Features
• XML. - eXtended Markup Language