Xport Interface: markup::iterator::iterator
Constructor for markup::iterator.
markup::iterator::iterator();iterator
markup::const_iterator::const_iterator();const_iterator
Parameters
None
Remarks
Constructs a markup iterator. A markup iterator is usually
initialized upon creation, normally by calling markup::begin() or from a return value from one of element's or document's operations.
Complexity
Constant
Example
#include "xhtml_doc.h"
#include <iostream>
int main(int argc, char* argv[])
{
using namespace Xport;
document doc(root_doc);
markup::iterator it = doc.begin();
formatter fmtr(std::cout);
std::cout << "Listing all elements in the root docuement.\n\n";
for (; it != doc.end(); ++it) {
it->write(fmtr);
std::cout << "\n\n";
}
}