Beispiel #1
0
                if ($xml->hasAttributes) {
                    while ($xml->moveToNextAttribute()) {
                        $node['attributes'][$xml->name] = $xml->value;
                    }
                }
                $tree[] = $node;
                break;
            case XMLReader::TEXT:
            case XMLReader::CDATA:
                $tree .= $xml->value;
        }
    }
    return $tree;
}
$api = new DandyID_Api('o0xa47o98x9ycoko5xkz326qb4gotk3iu1ty');
$result = DandyID_Api::submitHttpPost($api->returnServicesURL('155'));
$xml = new XMLReader();
$xml->open($api->returnServicesURL('155'));
$assoc = xml2assoc($xml);
$xml->close();
echo '<textarea cols=80 rows=20>';
print_r($assoc);
echo "</textarea><br />\n\n";
// ################################################
echo "# ################################################<br />\n";
$services = $assoc[0]["value"];
$count = count($services);
$count = 20;
// debug limit to 10
echo "count => {$count}<br />\n";
for ($i = 0; $i < $count; $i++) {