text nodes have no children.
testcase for boolean cast SimpleXMLElement