~ubuntu-branches/ubuntu/precise/libxml++2.6/precise

« back to all changes in this revision

Viewing changes to examples/sax_parser_build_dom/main.cc

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2005-03-13 15:46:33 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050313154633-iubyqdtu6y3p8915
Tags: 2.10.0-0ubuntu2
added doxygen to the build-depends

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    SVG::Element* element = doc.get_root();
59
59
    std::cout << "root's name is \"" << element->get_name() << "\"" << std::endl;
60
60
    xmlpp::NodeSet nl = element->find("//path[@style != '']");
61
 
    if (nl.size() > 0)
 
61
    if(!nl.empty())
62
62
    {
63
63
      SVG::Path* path = dynamic_cast<SVG::Path*>(nl[0]);
64
64
      std::cout << "style of first path node with a style = \"" << path->get_style() << "\"" << std::endl;