Skip to content

Instantly share code, notes, and snippets.

@michax

michax/iterator Secret

Created April 22, 2014 01:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michax/f2cb8558b9791cc64579 to your computer and use it in GitHub Desktop.
Save michax/f2cb8558b9791cc64579 to your computer and use it in GitHub Desktop.
View_paggr view_p;
xml_schema::document_pimpl doc_p(view_p.root_parser(),
view_p.root_name(), true);
view_p.pre();
doc_p.parse("page.xml");
View* v = view_p.post();
for (View::Component_iterator i = v->Component().begin(); i != v->Component().end(); ++i)
{
std::string id = i->id();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment