Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 90 places intérieur et TERRASSE privative de 80 places<br/>CA 1'500'000.--<br/>PV
- $xml = new DOMDocument("1.0", "ISO-8859-1");
- $xml->preserveWhiteSpace = FALSE;
- $xml->formatOutput = TRUE;
- $xml->load($fichier, LIBXML_NOENT);
- $xpath = new DOMXPATH($xml);
- $xml -> substituteEntities = true;
- foreach ($xpath->query("/$racine/annonce[@id = '$annonce']") as $node)
- {
- $flagplus = $node->getElementsByTagName('flagplus')->item(0)->nodeValue;
- $entete = utf8_encode($node->getElementsByTagName('entete')->item(0)->nodeValue);
- $nouveau = $node->getElementsByTagName('nouveau')->item(0)->nodeValue;
- $description = utf8_encode($node->getElementsByTagName('description')->item(0)->nodeValue);
- $couleur = $node->getElementsByTagName('couleur')->item(0)->nodeValue;
- $detail = utf8_encode($node->getElementsByTagName('detail')->item(0)->data);
- $autre = utf8_encode($node->getElementsByTagName('autre')->item(0)->nodeValue);
- $contact = utf8_encode($node->getElementsByTagName('contact')->item(0)->nodeValue);
- $vente = utf8_encode($node->getElementsByTagName('vente')->item(0)->nodeValue);
- echo "<script>alert('$detail');</script>";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement