namespaces = array(); } function addNamespace($namespace, $uri) { $ns = array($namespace => $uri); $this->namespaces = array_merge($this->namespaces, $ns); } function initEntry() { } function endEntry() { } function validate { } function getString() { $this->validate(); $this->initEntry(); $this->renderEntries(); $this->endEntry(); return $this->xw->outputMemory(); } }