"; } if ( count($attributes) > 0 ) { $startTag = "<$xmlTagName "; foreach ( $attributes as $key => $value ) { $startTag .= "$key=\"$value\" "; } $startTag .= ">"; } else $startTag = "<$xmlTagName>"; $endTag = ""; return "$startTag $data $endTag\n"; } } ?>