mirror of
https://github.com/jezhiggins/arabica
synced 2024-11-15 19:48:00 +01:00
Don't use currentNode_ when added entity declarations
This commit is contained in:
parent
8d94910107
commit
77dcf5728e
1 changed files with 2 additions and 7 deletions
|
@ -299,20 +299,15 @@ class Parser : private SAX::basic_DefaultHandler2<stringT>
|
|||
EntityT* entity = new EntityT(0, name, SA_.makeStringT(""), SA_.makeStringT(""), SA_.makeStringT(""));
|
||||
declaredEntities_.insert(std::make_pair(name, entity));
|
||||
documentType_->addEntity(entity);
|
||||
currentNode_ = entity;
|
||||
currentNode_.appendChild(document_.createTextNode(value));
|
||||
currentNode_ = document_;
|
||||
DOM::Node<stringT> n = entity;
|
||||
n.appendChild(document_.createTextNode(value));
|
||||
} // internalEntityDecl
|
||||
|
||||
virtual void externalEntityDecl(const stringT& name, const stringT& publicId, const stringT& systemId)
|
||||
{
|
||||
EntityT* entity = new EntityT(0, name, publicId, systemId, SA_.makeStringT(""));
|
||||
currentNode_ = entity;
|
||||
|
||||
declaredEntities_.insert(std::make_pair(name, entity)); // we'll populate it later
|
||||
|
||||
documentType_->addEntity(entity);
|
||||
currentNode_ = document_;
|
||||
} // externalEntityDecl
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Reference in a new issue