Advertisement
Guest User

Untitled

a guest
May 9th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. <?php
  2. $request_url = "file.xml";
  3. $xml = simplexml_load_file($request_url);
  4. $myValue = $xml->xpath('/products/product/properties/property[@name="city"]/value');
  5. foreach ($myValue as $value) { echo $value; }
  6. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement