public function testArrayDataFormat() { $writer = new XmlWriter($this->filename); $writer->open(); $writer->write(array('firstname' => 'john "2', 'lastname' => 'doe', 'id' => '1', 'tags' => array('foo', 'bar'))); $writer->close(); }