saveXML()
Output / FilesDescription
Saves an XML object to a file.
Syntax
bool saveXML(std::string path, const XML& x)
Parameters
| Name | Type | Description |
|---|---|---|
| path | std::string | path to write to |
| x | XML | the XML object to save |
Returns
boolRelated
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; }