Main MRPT website > C++ reference for MRPT 1.5.6
Modules
Create or Update the XMLNode structure

Detailed Description

The functions in this group allows you to create from scratch (or update) a XMLNode structure.

Start by creating your top node with the "createXMLTopNode" function and then add new nodes with the "addChild" function. The parameter 'pos' gives the position where the childNode, the text or the XMLClearTag will be inserted. The default value (pos=-1) inserts at the end. The value (pos=0) insert at the beginning (Insertion at the beginning is slower than at the end).

REMARK: 0 <= pos < nChild()+nText()+nClear()

Collaboration diagram for Create or Update the XMLNode structure:

Modules

 Creating from scratch a XMLNode structure
 
 Updating Nodes
 Some update functions:
 
 Deleting Nodes or Attributes
 Some deletion functions:
 
 ???_WOSD functions.
 The strings given as parameters for the "add" and "update" methods that have a name with the postfix "_WOSD" (that means "WithOut String Duplication")(for example "addText_WOSD") will be free'd by the XMLNode class.
 
 Position helper functions (use in conjunction with the update&add functions
 These are some useful functions when you want to insert a childNode, a text or a XMLClearTag in the middle (at a specified position) of a XMLNode tree already constructed.
 
 String Allocation/Free functions
 



Page generated by Doxygen 1.8.14 for MRPT 1.5.6 Git: 4c65e8431 Tue Apr 24 08:18:17 2018 +0200 at lun oct 28 01:35:26 CET 2019