/** * Transfers each child and attribute into member variables. * This is called when XML is received over the wire and the data * model needs to be built to represent this XML. * * @param DOMNode $node The DOMNode that represents this object's data */ public function transferFromDOM($node) { parent::transferFromDOM($node); $this->_rootElement = $node->localName; }