Hi,
I use minixml to parse a Excel-XML-file to an array, which works quite well. But when I tried to parse the unmodified array back to an XML-String I encountered an "null pointer" exception. After a few debugs I think I found the problem, since no restriction of that kind was found I thing its worth to be called a bug.
toArray creates afaik a quasi-numeric array for repetentive XML elements like ...<x>..</x><x>..</x>..</x>... --> ['x']=>[0],[1],[2], now the problem is that it adds a ['_num'] key representing the amount of values held by ['x']. So when you try to fromArray() this, it (_fromArray_getExtractSub() to be exactly) decides that the array ['x'] is an associative one, leading to some cast or whatever error 0 -> null resulting an null-referenced $parent parameter so no child can be created and the whole thing breakes down.
to workaround this i simply remove all _num keys as i don't need it, but it is surely not the best thing to be hindred to do something like this on arrrays with repetetive elements:
$xmlDoc = new MiniXMLDoc();
$xmlDoc->fromString($xmlstring);
$array = xmlDoc->toArray();
$xmlDoc->fromArray($array,$params); //$params holds the attributes
$xmlcmp = $xmlDoc->toString();
this should a least return content-identical $xmlstring and $xmlcmp
Best Regards birdspider