mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-29 08:36:45 +01:00
Verify qNames when processing.
This commit is contained in:
parent
3a3f5d4b32
commit
6a2101d6cb
1 changed files with 3 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include <SAX/XMLReader.hpp>
|
||||
#include <SAX/helpers/DefaultHandler.hpp>
|
||||
#include <XML/strings.hpp>
|
||||
#include <XPath/XPath.hpp>
|
||||
#include <stack>
|
||||
|
||||
|
@ -59,6 +60,8 @@ public:
|
|||
|
||||
std::pair<std::string, std::string> processQName(const std::string& qName) const
|
||||
{
|
||||
if(!Arabica::XML::is_qname(qName))
|
||||
throw SAX::SAXException("Bad name : " + qName);
|
||||
return parser_.processQName(qName);
|
||||
} // processQName
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue