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

« back to all changes in this revision

Viewing changes to libxml++/parsers/parser.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:
135
135
      vsnprintf(buff, sizeof(buff)/sizeof(buff[0]), msg, arg);
136
136
      va_end(arg);
137
137
 
 
138
      #ifdef LIBXMLCPP_EXCEPTIONS_ENABLED
138
139
      try
139
140
      {
 
141
      #endif
140
142
        parser->on_validity_error(Glib::ustring(buff));
 
143
      #ifdef LIBXMLCPP_EXCEPTIONS_ENABLED
141
144
      }
142
145
      catch(const exception& e)
143
146
      {
144
147
        parser->handleException(e);
145
148
      }
 
149
      #endif
146
150
    }
147
151
  }
148
152
  
166
170
      vsnprintf(buff, sizeof(buff)/sizeof(buff[0]), msg, arg);
167
171
      va_end(arg);
168
172
 
 
173
      #ifdef LIBXMLCPP_EXCEPTIONS_ENABLED
169
174
      try
170
175
      {
 
176
      #endif
171
177
        parser->on_validity_warning(Glib::ustring(buff));
 
178
      #ifdef LIBXMLCPP_EXCEPTIONS_ENABLED
172
179
      }
173
180
      catch(const exception& e)
174
181
      {
175
182
        parser->handleException(e);
176
183
      }
 
184
      #endif
177
185
    }
178
186
  }
179
187
}