saveXML()

Output / Files

Description

Saves an XML object to a file.

Syntax

bool saveXML(std::string path, const XML& x)

Parameters

NameTypeDescription
pathstd::stringpath to write to
xXMLthe XML object to save

Returns

bool

Related

Under the Hood

From Processing.h:

static bool saveXML(const std::string& path, const XML& x);

Under the Hood

From Processing.cpp:

bool PApplet::saveXML(const std::string& path,const XML& x){ std::ofstream f(path);if(!f)return false;f<<x.toString();return true; }