better solution for DOMElement versus DOMText