Writes ending pair tag.
XMLWriter $writer: Writer that writes the output.
string $name: Ending tag name.
$id: Current node id.
protected function writeEPT(\XMLWriter $writer, $name, $id) {
$writer
->startElement('ept');
$writer
->writeAttribute('id', $id);
$writer
->text('</' . $name . '>');
$writer
->endElement();
}