function parseManagedObjet_BSC60002GAdjRel($fdn, $node) {
$pdn = $this->parseFdn($fdn);
$LINE = $this->parseAttrChild($node->attr);
$name[0]= $LINE[$val[0]='name'];//$nom_voisinage
$name[1]= $LINE[$val[1]='Neb2GCellIndex']; //$neighbour_2G_index
$name[2] = $LINE[$val[2]='CellIndex']; //$cell_index
$this->f->addItem($name , $val);
}
Druga w klasie B wyglada tak:
function addItem($array , $array1)
{
echo $array[0];
echo $array1[0]."<br>";
echo $array[1];
echo $array1[1]."<br>";
echo $array[2];
echo $array1[2]."<br>";
if (is_array($array) && is_array($array1))
{
for ($i=0 ; $i<sizeof($array1) ; $i++){
$this->startElement("attr");
$this->writeElement($array[0], $array1[0]);
$this->endElement();
}}}
wszystkie echa wyrzucaja mi elegancko parametry, lecz jesli je chce zapisac do XMLa w petli, wyrzuca mi warningi:
Warning: XMLWriter::writeElement() [xmlwriter.writeelement]: Invalid Element Name.
Any ideas?