elementStack = array(); } public function openUri( $filename ) { $this->uriFs = fopen( $filename, 'w' ); return $this->uriFs; } public function startDocument( $version, $charset = 'utf-8' ) { fputs( $this->uriFs, "\n" ); } public function startElement( $name ) { fputs( $this->uriFs, "<$name>" ); array_push( $this->elementStack, $name ); } public function endElement() { $name = array_pop( $this->elementStack ); fputs( $this->uriFs, "" ); } public function text( $text ) { fputs( $this->uriFs, $text ); } public function endDocument() { fclose( $this->uriFs ); } public function flush() { fputs( $this->uriFs, "\n" ); } public function setIndent( $switch ) { } } ?>