Function NewText

Synopsis

#include <tinyxml2.h>

XMLText * NewText(const char *text)

Description

Create a new Text associated with this Document. The memory for the Text is managed by the Document.

Mentioned in

Source

Lines 2227-2232 in tinyxml2.cpp. Line 1850 in tinyxml2.h.

XMLText* XMLDocument::NewText( const char* str )
{
    XMLText* text = CreateUnlinkedNode<XMLText>( _textPool );
    text->SetValue( str );
    return text;
}





Add Discussion as Guest

Log in