public function writeXml($rset)
 {
     $fout = php_io_File::write("RomanianDictionary.xml", false);
     $fout->writeString(_hx_deref(new haxe_Template(haxe_Resource::getString("header")))->execute(_hx_anonymous(array()), null));
     $wordTemplate = new haxe_Template(haxe_Resource::getString("word"));
     $»it = $rset;
     while ($»it->hasNext()) {
         $row = $»it->next();
         $properties = _hx_anonymous(array("id" => $row->id, "word" => $row->lexicon, "definition" => $row->htmlRep));
         $fout->writeString($wordTemplate->execute($properties, null) . "\n");
         unset($properties);
     }
     $fout->writeString(_hx_deref(new haxe_Template(haxe_Resource::getString("footer")))->execute(_hx_anonymous(array()), null));
     $fout->close();
 }
 static function getBytes($name)
 {
     return php_io_File::getBytes(haxe_Resource::getPath($name));
 }