Xport Interface: document::parse

Parses an (x)html file into the called document object.

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

Parameters

path

A string which specifies the path of the (x)html file to parse.

prsr

A parser object. The parser object will contain the path/stream to parse, and any other parsing options.

Returns

Returns true if the parse was successful, false otherwise.

Remarks

This operation is used to parse an (x)html file or stream. The first variety parses a file only. The second variety can parse a file or stream, which is determined by the parser object. The first variety uses a default parser object to parse the specified file. To control specific parsing options, use the 2nd variety, which allows you to set options on the parser 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.