I have this XML content:
$XML = "<item xmlns='http://...'>Some value</item>";
I want to extract the value off the tag, so I use the following regular expression:
$Value = preg_replace("/^<item [.]+>/","",$XML);
$Value = preg_replace("/</item>$/","",$Value);
But these don't work, the $Value finally is still the same as $XML. How to fix this?