Hi there,
The following is a snippet of my xml parser:
function startElement($xml_parser, $name, $attributes) {
echo "<tr>";
echo "<td>".$name."</td>"."<td>";
foreach($attributes as $newattrs) {
echo $newattrs."<br />";
}
echo "</td>";
}
function characterData($xml_parser, $data) {
echo "<td><b>".$data."</b></td>";
}
function endElement($xml_parser, $name) {
echo "</td>";
echo "</tr>";
}
It works fine - but I'd like to be able to put the following into characterData:
$information[$name][$data];
I can't seem to find a way of doing this as it leaves the startElement and moves on to characterData.
Any help would be appreciated. 🙂
Thanks,
Chris