so the & is an entity?...
how would I parse it so that it comes out on one line?
i tried putting htmlspecialchars($data), but it still comes out as three lines...
my head hurts =(
function tag_contents($parser, $data)
{
if ($this->current == "ADDRESS")
{
echo htmlspecialchars($data)."<BR/>";
//array_push($this->address1, addslashes("$data") );
}
}
while($data = fread($fp, filesize($this->xml_file)))
{
$data = eregi_replace(">"."[[:space:]]+"."<","><",$data);
if (!xml_parse($this->xml_parser, $data, feof($fp)))
{
die(sprintf("XML error: %s at line %d",
xml_error_string(xml_get_error_code($this->xml_parser)),
xml_get_current_line_number($this->xml_parser)));
}
}