Xport Interface: parser::doctype

Returns the doctype declaration of the input stream or file.

  std::string parser::doctype() const;

Parameters

None.

Returns

Returns a string containing the doctype declaration, if any. If the doctype declaration isn't present in the stream/file, returns an empty string.

Remarks

Use this operation to determine the document type of the input stream or file being parsed.

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.