XML-Parser * XML. (after Parse)

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > XML-Parser > XML. - after parse >

XML-Parser * XML. (after Parse)

XML.Down Close Bracket

Previous Top Next


MiniRobotLanguage (MRL)

 

XML.Down Close Bracket

XML.dncb

Move position to close bracket in down direction

 

 

Intention

 

This command is used to move the actual position to the next > Closing bracket in down direction.

 

Usage:

 

' The new position will be in $$ERG

' if nothing found $$ERG=0

XML.dncb|$$ERG

 

' One Parameter will also work.

XML.dncb

XML.get pos|$$POS

PRT.Actual Position is: $$POS

 

 

 

Syntax

 

 

XML.Down Close Bracket[|P2]

 

 

 

Parameter Explanation

 

P2 - (optional) Variable to return the result, that is the new position or zero,

          if nothing was found. . The result is 0 in case nothing was found.

          If something was found, the actual position will be set to this new position.

          If P2 is omitted the result is been placed on TOS.

 

 

 

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.dncb|$$ERG

XML.get pos|$$POS

PRT.Actual Position is: $$POS

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.

 

This is the result of the sample script:

 

graphic

 

 

 

 

 

Remarks

 

-

 

 

 

Limitations:

 

-

 

 

See also:

 

  ! Smart Package Robot 's XML-Features

  ! SPR - XML-Parser Flags

  XML. - eXtended Markup Language

  par - parse from var

  upob - Up Open Bracket

  upcb - Up Close Bracket

  dnob - Down Open Bracket