mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-30 08:38:15 +01:00
now handles document('')
This commit is contained in:
parent
9a6a8e0a9c
commit
9d70b5c1c0
1 changed files with 0 additions and 3 deletions
|
@ -158,9 +158,6 @@ public:
|
||||||
private:
|
private:
|
||||||
Arabica::XPath::XPathValue<std::string>* load_document(const std::string& location) const
|
Arabica::XPath::XPathValue<std::string>* load_document(const std::string& location) const
|
||||||
{
|
{
|
||||||
if(location.empty())
|
|
||||||
throw Arabica::XPath::UnsupportedException("document('')");
|
|
||||||
|
|
||||||
SAX2DOM::Parser<std::string> domParser;
|
SAX2DOM::Parser<std::string> domParser;
|
||||||
SAX::CatchErrorHandler<std::string> eh;
|
SAX::CatchErrorHandler<std::string> eh;
|
||||||
domParser.setErrorHandler(eh);
|
domParser.setErrorHandler(eh);
|
||||||
|
|
Loading…
Add table
Reference in a new issue