PHP DOMElement class extended with new useful functions