/** * Returns the AnyDataset XmlDocument representive object * @return \DOMDocument XmlDocument object */ public function getDomObject() { $anyDataSet = XmlUtil::createXmlDocumentFromStr("<anydataset/>"); $nodeRoot = $anyDataSet->getElementsByTagName("anydataset")->item(0); foreach ($this->_collection as $sr) { $row = $sr->getDomObject(); $nodeRow = $row->getElementsByTagName("row")->item(0); $newRow = XmlUtil::createChild($nodeRoot, "row"); XmlUtil::addNodeFromNode($newRow, $nodeRow); } return $anyDataSet; }