I need to do use the evaluate function in teh DOMXpath, but the attribute I am trying to access has a colon in it, and I cant figure out how to get it. I can access all the attributes with just letters, but it doens tfind this one:
the xml file contains this, which I am trying to find:
So I need it to return a nodelist with Timestamp-2f00e1cf-15bb-437f-b80c-e71bb3a89348 in it.
Ideas?
Code:
$xpath = new DOMXPath($doc);
$entries = $xpath->evaluate("wsu:Id", $doc);
the xml file contains this, which I am trying to find:
Code:
<wsu:Timestamp wsu:Id="Timestamp-2f00e1cf-15bb-437f-b80c-e71bb3a89348">
So I need it to return a nodelist with Timestamp-2f00e1cf-15bb-437f-b80c-e71bb3a89348 in it.
Ideas?