hello world =)
j'ai codé un parseur XML avec PHP5 & DOM. Sur mon ordi (j'utilise xampp) sa marche tres bien! mais quand je l'ai uploadé sur le serveur... surprise!!!
les balises sans attributs fonctionnent, mais les celles avec des attributs bug!
quelqu'un a une idée?
voici la partie du parser qui remplace les attributs:
merci d'avance et excusez mon francais
j'ai codé un parseur XML avec PHP5 & DOM. Sur mon ordi (j'utilise xampp) sa marche tres bien! mais quand je l'ai uploadé sur le serveur... surprise!!!


quelqu'un a une idée?
voici la partie du parser qui remplace les attributs:
// replace attributes:
if( $node->hasAttributes() AND $name!='image' )
{
$attrib = $node->attributes->getNamedItem($attributs[$name])->nodeValue; // get attribut value
$tagOpen = str_replace("$1", $attrib, $tagOpen);
}
// image's attributes:
if($name == 'image')
{
$attrib1 = $node->attributes->getNamedItem('url')->nodeValue;
$tagOpen = str_replace("$1", $attrib1, $tagOpen);
$attrib2 = $node->attributes->getNamedItem('leg')->nodeValue;
$tagOpen = str_replace("$2", $attrib2, $tagOpen);
$collector = $tagOpen;
}
merci d'avance et excusez mon francais
