Main MRPT website > C++ reference for MRPT 1.5.7
Functions
Creating from scratch a XMLNode structure

Detailed Description

Collaboration diagram for Creating from scratch a XMLNode structure:

Functions

static XMLNode XMLNode::createXMLTopNode (XMLCSTR lpszName, char isDeclaration=FALSE)
 Create the top node of an XMLNode structure. More...
 
XMLNode XMLNode::addChild (XMLCSTR lpszName, char isDeclaration=FALSE, XMLElementPosition pos=-1)
 Add a new child node. More...
 
XMLNode XMLNode::addChild (XMLNode nodeToAdd, XMLElementPosition pos=-1)
 If the "nodeToAdd" has some parents, it will be detached from it's parents before being attached to the current XMLNode. More...
 
XMLAttributeXMLNode::addAttribute (XMLCSTR lpszName, XMLCSTR lpszValuev)
 Add a new attribute. More...
 
XMLCSTR XMLNode::addText (XMLCSTR lpszValue, XMLElementPosition pos=-1)
 Add a new text content. More...
 
XMLClearXMLNode::addClear (XMLCSTR lpszValue, XMLCSTR lpszOpen=NULL, XMLCSTR lpszClose=NULL, XMLElementPosition pos=-1)
 Add a new clear tag. More...
 

Function Documentation

◆ addAttribute()

XMLAttribute * XMLNode::addAttribute ( XMLCSTR  lpszName,
XMLCSTR  lpszValuev 
)

Add a new attribute.

Definition at line 2545 of file xmlParser.cpp.

References XMLNode::addAttribute_priv(), and stringDup().

Referenced by mrpt::utils::CSimpleDatabase::saveAsXML().

◆ addChild() [1/2]

XMLNode XMLNode::addChild ( XMLCSTR  lpszName,
char  isDeclaration = FALSE,
XMLElementPosition  pos = -1 
)

◆ addChild() [2/2]

XMLNode XMLNode::addChild ( XMLNode  nodeToAdd,
XMLElementPosition  pos = -1 
)

If the "nodeToAdd" has some parents, it will be detached from it's parents before being attached to the current XMLNode.

Definition at line 2168 of file xmlParser.cpp.

References XMLNode::addChild(), XMLNode::addToOrder(), XMLNode::d, XMLNode::detachFromParent(), and eNodeChild.

◆ addClear()

XMLClear * XMLNode::addClear ( XMLCSTR  lpszValue,
XMLCSTR  lpszOpen = NULL,
XMLCSTR  lpszClose = NULL,
XMLElementPosition  pos = -1 
)

Add a new clear tag.

Parameters
lpszOpendefault value "<![CDATA["
lpszClosedefault value "]]>"

Definition at line 2553 of file xmlParser.cpp.

References XMLNode::addClear_priv(), and stringDup().

◆ addText()

XMLCSTR XMLNode::addText ( XMLCSTR  lpszValue,
XMLElementPosition  pos = -1 
)

Add a new text content.

Definition at line 2549 of file xmlParser.cpp.

References XMLNode::addText_priv(), and stringDup().

Referenced by mrpt::utils::CSimpleDatabase::saveAsXML().

◆ createXMLTopNode()

XMLNode XMLNode::createXMLTopNode ( XMLCSTR  lpszName,
char  isDeclaration = FALSE 
)
static

Create the top node of an XMLNode structure.

Definition at line 1001 of file xmlParser.cpp.

References XMLNode::isDeclaration(), stringDup(), and XMLNode::XMLNode().

Referenced by mrpt::utils::CSimpleDatabase::saveAsXML().




Page generated by Doxygen 1.8.14 for MRPT 1.5.7 Git: 5902e14cc Wed Apr 24 15:04:01 2019 +0200 at lun oct 28 01:39:17 CET 2019