Xport Interface: document::write

Writes an xhtml document to a file or stream.

bool document::write(1st Variety
  const std::string& path
);
bool document::write(2nd Variety
  const_parser& prsr
);

Parameters

path

A string which specifies the path of the xhtml file to write.

prsr

A formatter object. The formatter object will contain the path/stream to write, and any other formatting options.

Returns

Returns true if the write was successful, false otherwise.

Remarks

This operation is used to write an xhtml file or stream. The first variety writes to a file only. The second variety can write to a file or stream, which is determined by the formatter object. The first variety uses a default formatter object to format the xhtml file. To control specific formatting options, use the 2nd variety, which allows you to set options on the formatter object.

Complexity

Constant

Example

Work Time Studio

Datasoft Solutions is proud to present their landmark product, Work Time Studio. Utilizing the tree container library, Work Time Studio provides unparalleled features in personal time, project and task management software. If you're looking for a way to increase your productivity, visit Work Time Studio's product website, and start being more productive today.