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

« back to all changes in this revision

Viewing changes to examples/sax_exception/myparser.cc

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-09-18 11:32:24 UTC
  • mfrom: (1.1.10 upstream)
  • Revision ID: james.westby@ubuntu.com-20070918113224-7x031mzf1shoozxx
Tags: 2.20.0-0ubuntu1
* New upstream release:
  - Element: Added get_attribute_value(), to get a simple text value for an
    attribute.
  - Added an experimental --enable-api-exceptions configure option, to allow
    libxml++ to build without exceptions.
* debian/libxml++2.6-doc.docs: 2.18 -> 2.20.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
 
39
39
void MyException::Raise() const
40
40
{
 
41
  #ifdef LIBXMLCPP_EXCEPTIONS_ENABLED
41
42
  throw *this;
 
43
  #endif //LIBXMLCPP_EXCEPTIONS_ENABLED 
42
44
}
43
45
 
44
46
xmlpp::exception * MyException::Clone() const
81
83
    std::cout << "  Attribute " << iter->name << " = " << iter->value << std::endl;
82
84
  }
83
85
 
 
86
  #ifdef LIBXMLCPP_EXCEPTIONS_ENABLED
84
87
  throw MyException();
85
 
  
 
88
  #endif //LIBXMLCPP_EXCEPTIONS_ENABLED 
86
89
}
87
90
 
88
91
void MySaxParser::on_end_element(const Glib::ustring& name)