Function NewElement

Synopsis

#include <tinyxml2.h>

XMLElement * NewElement(const char *name)

Description

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

Mentioned in

Source

Lines 2211-2216 in tinyxml2.cpp. Line 1838 in tinyxml2.h.

XMLElement* XMLDocument::NewElement( const char* name )
{
    XMLElement* ele = CreateUnlinkedNode<XMLElement>( _elementPool );
    ele->SetName( name );
    return ele;
}





Add Discussion as Guest

Log in