[ create a new paste ] login | about

Link: http://codepad.org/ggvVydOF    [ raw code | output | fork ]

PHP, pasted on Apr 17:
<?php

  $xml = <<<EOD
<?xml version="1.0" encoding="ISO-8859-1" ?>
<SearchResponse>
  <ReturnStatus>
    <Success>
        <data>true</data>
        <data2>true</data2>
    </Success>
    <Success>
        <data>false</data>
        <data2>true</data2>
    </Success>
    <Exception />
  </ReturnStatus>
  <SearchURL />
  <PropertyResults>
    <PropertyResult>
      <PropertyID>1468830</PropertyID>
      <PropertyName>Sands Acapulco</PropertyName>
    </PropertyResult>
    <PropertyResult>
      <PropertyID>1353302</PropertyID>
      <PropertyName>Acapulco Turquesa</PropertyName>
    </PropertyResult>
    <PropertyResult>
      <PropertyID>4521565</PropertyID>
      <PropertyName>Almaria Delsonto</PropertyName>
    </PropertyResult>   
  </PropertyResults>
</SearchResponse>
EOD;

$config = simplexml_load_string($xml);
echo $config->getName();


Output:
1
SearchResponse


Create a new paste based on this one


Comments: