1.1 --- a/libxml2dom/macrolib/macrolib.py Sun Jan 26 22:55:18 2014 +0100
1.2 +++ b/libxml2dom/macrolib/macrolib.py Tue Jan 28 23:27:08 2014 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 DOM macros for virtual libxml2mod node methods and properties.
1.6
1.7 -Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2013 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2013, 2014 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU Lesser General Public License as published by the Free
1.12 @@ -625,6 +625,12 @@
1.13 if context is None:
1.14 raise LSException(LSException.PARSE_ERR, DOMError(DOMError.SEVERITY_FATAL_ERROR))
1.15
1.16 + # Remove spurious error conditions.
1.17 +
1.18 + error = Parser_error()
1.19 + if error is not None:
1.20 + Parser_resetError(error)
1.21 +
1.22 Parser_configure(context, validate, remote)
1.23 Parser_parse(context)
1.24 doc = Parser_document(context)