XML. - eXtended Markup Language

<< Click to Display Table of Contents >>

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

XML. - eXtended Markup Language

XML.InsertXmlPart / XML.Ixp

Previous Top Next


MiniRobotLanguage (MRL)

 

XML.InsertXmlPart

XML.Ixp

Insert XML content at a specified position.

 

 

Intention

 

This command inserts a string into the XML data at the specified position without deleting any existing content. If the XML structure changes, the document will be reparsed automatically.

 

 

 

Syntax

 

 

XML.InsertXmlPart|$$Content[|Position]

 

 

Parameters

 

$$Content - The XML content to insert.

Position - (Optional) Position to insert at. Uses current position if not specified.

 

 

Return Value

 

None. The XML data is modified and automatically reparsed if the structure changes.

 

 

Example

 

' Insert a new element

$$NewItem=<item>New</item>

XML.InsertXmlPart|$$NewItem|50

 

 

Remarks

 

If the inserted content changes the XML structure (length), the document will be automatically reparsed. This may affect current position and navigation.

 

 

See also:

 

  sxp - Set Xml Part

  gxp - Get Xml Part

  rpa - Reparse