DomEntityReference DomNode::to_entity_reference() const { if (is_entity_reference()) return DomEntityReference(impl); return DomEntityReference(); }
DomEntityReference DomDocument::create_entity_reference(const DomString &name) { return DomEntityReference(*this, name); }