mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-17 18:12:04 +01:00
No longer tries to expand refs to undeclared entities
This commit is contained in:
parent
eccb9ba909
commit
b83217f186
1 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ class Parser : private SAX::basic_DefaultHandler2<stringT>
|
||||||
} // catch
|
} // catch
|
||||||
parser.setFeature(fNames.namespaces, true);
|
parser.setFeature(fNames.namespaces, true);
|
||||||
parser.setFeature(fNames.namespace_prefixes, true);
|
parser.setFeature(fNames.namespace_prefixes, true);
|
||||||
parser.setFeature(fNames.external_general, true);
|
//parser.setFeature(fNames.external_general, true);
|
||||||
|
|
||||||
parser.parse(source);
|
parser.parse(source);
|
||||||
|
|
||||||
|
@ -216,7 +216,7 @@ class Parser : private SAX::basic_DefaultHandler2<stringT>
|
||||||
{
|
{
|
||||||
cachedCurrent_ = currentNode_;
|
cachedCurrent_ = currentNode_;
|
||||||
currentNode_ = declaredEntities_[name];
|
currentNode_ = declaredEntities_[name];
|
||||||
if(currentNode_.hasChildNodes() == true) // already populated
|
if(currentNode_ != 0 && currentNode_.hasChildNodes() == true) // already populated
|
||||||
currentNode_ = 0;
|
currentNode_ = 0;
|
||||||
}
|
}
|
||||||
} // startEntity
|
} // startEntity
|
||||||
|
|
Loading…
Reference in a new issue