ElementTree HTML namespace; public classes and functions are defined here.
More...
ElementTree HTML namespace; public classes and functions are defined here.
Element etree::html::fromstring |
( |
const std::string & |
s | ) |
|
Parse an HTML document from a STL string and return a reference to its root node.
- Parameters
-
s | Document fragment as a string. |
- Returns
- Root Element.
Element etree::html::fromstring |
( |
const char * |
s | ) |
|
Parse an HTML document from a character array and return a reference to its root node.
- Parameters
-
s | Document fragment as a string. |
- Returns
- Root Element.
ElementTree etree::html::parse |
( |
const std::string & |
path | ) |
|
Parse an HTML document from the filesystem and return it.
- Parameters
-
- Returns
- ElementTree instance.
Parse an HTML document from a STL istream and return it.
- Parameters
-
- Returns
- ElementTree instance.
Parse an HTML document from a file descriptor and return it.
- Parameters
-
fd | File descriptor number. |
- Returns
- ElementTree instance.
std::string etree::html::tostring |
( |
const Element & |
e | ) |
|
Serialize an HTML element.
See ElementTree::tostring() for another variant.
- Parameters
-
- Returns
- UTF-8 encoded string.
Serialize an HTML element.
See ElementTree::tostring() for another variant.
- Parameters
-
- Returns
- UTF-8 encoded string.