|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > XML-Parser > XML - no parse > XML. - eXtended Markup Language |
MiniRobotLanguage (MRL)
XML.SplitAttrib
XML.Spl
Split an attribute string into name and value.
Intention
This command splits an attribute string (like name="value") into its name and value parts. The value quotes are automatically removed.
Syntax
XML.SplitAttrib|$$Attrib|$$Name|$$Value
Parameters
$$Attrib - The attribute string to split (e.g., class="myClass").
$$Name - Variable to receive the attribute name.
$$Value - Variable to receive the attribute value (without quotes).
Return Value
The attribute name and value are stored in the provided variables.
Example
' Split an attribute
$$Attr=class="container"
XML.SplitAttrib|$$Attr|$$Name|$$Value
PRT.Name: $$Name
PRT.Value: $$Value
See also: