Returns a reference (or const reference for const_descendant_iterator) to the underlying markup object.
Remarks
Dereferences the iterator, returning a reference to the underlying markup object (for descendant_iterator), and a const reference to the underlying
markup object (for const_descendant_iterator).
Complexity
Constant
Example
#include "xhtml_doc.h"
#include "xport_brochure.h"
#include <iostream>
int main(int argc, char* argv[])
{
using namespace Xport;
// create a root document
document doc(root_doc);
// populate the document
xport_brochure broch;
broch.create(doc);
std::cout << "writing the elements of class 'code_block' in xport brochure.\n\n";
// create a formatter object
formatter fmtr(std::cout);
// output all 'code_block' class elements to cout
markup::const_descendant_iterator it = doc.descendant_begin();
for (; it != doc.descendant_end(); ++it) {
if (it->attribute(class_attribute) == "code_block") {
fmtr << *it;
std::cout << "\n\n";
}
}
}
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.