title: DOMNode to DOMElement in php
body: <p>I want to convert a <code>DOMNode</code> object from a call to <code>getElementsByTagName()</code> to a <code>DOMElement</code> in order to access methods like <code>getElementsByTagName()</code> on the child element. In any other language, I would cast and it would be easy, but after some quick looking, PHP does not have object casting. So what I need to know is how to get a <code>DOMElement</code> object from a <code>DOMNode</code> object.</p>