ofDocsdocumentation utils ofXml


appendAttribute( ... )

ofXml::Attribute appendAttribute(const string &name)

appendChild( ... )

ofXml appendChild(ofXml &&xml)

appendChild( ... )

ofXml appendChild(const string &name)

appendChild( ... )

ofXml appendChild(const ofXml &xml)

find( ... )

ofXml::Search find(const string &path)

findFirst( ... )

ofXml findFirst(const string &path)

getAttribute( ... )

ofXml::Attribute getAttribute(const string &name)

Returns the value of an attribute or an empty string if it doesn't exist.


getBoolValue( )

bool getBoolValue()

getChild( ... )

ofXml getChild(const string &name)

getDoubleValue( )

double getDoubleValue()

getFirstAttribute( )

ofXml::Attribute getFirstAttribute()

getFirstChild( )

ofXml getFirstChild()

getFloatValue( )

float getFloatValue()

getIntValue( )

int getIntValue()

getLastAttribute( )

ofXml::Attribute getLastAttribute()

getLastChild( )

ofXml getLastChild()

getName( )

string getName()

getNextSibling( ... )

ofXml getNextSibling(const string &name)

getNextSibling( )

ofXml getNextSibling()

getPreviousSibling( ... )

ofXml getPreviousSibling(const string &name)

getPreviousSibling( )

ofXml getPreviousSibling()

getUintValue( )

unsigned int getUintValue()

getValue( )

T getValue()

getValue( )

string getValue()

insertChildAfter( ... )

ofXml insertChildAfter(const string &name, const ofXml &after)

insertChildBefore( ... )

ofXml insertChildBefore(const string &name, const ofXml &after)

load( ... )

bool load(const ofBuffer &buffer)

load( ... )

bool load(const filesystem::path &file)

ofXml( )

ofXml()

parse( ... )

bool parse(const string &xmlStr)

prependAttribute( ... )

ofXml::Attribute prependAttribute(const string &name)

prependChild( ... )

ofXml prependChild(ofXml &&xml)

prependChild( ... )

ofXml prependChild(const string &name)

prependChild( ... )

ofXml prependChild(const ofXml &xml)

removeChild( ... )

bool removeChild(const string &name)

save( ... )

bool save(const filesystem::path &file)

Save the XML object to a file.


set( ... )

void set(const T &value)

set( ... )

void set(const unsigned char &value)

setAttribute( ... )

ofXml::Attribute setAttribute(const string &name, const T &value)

Sets attribute at the path indicated. If the attribute doesn't already exist, it's created.


setName( ... )

void setName(const string &name)

toString( ... )

string toString(const string &indent)

Creates a string from the XML document. Useful for when you want to send or save the document.