children of simplexml nodes should inherit parent class

This already happens using simplexml_load_string, but it must also
happen when directly instantiating and specifying the XML through
constructor.
treat cdata nodes as text.

Perhaps this is not the best implementation. But at least it will allow
us to access cdata.