I currently need a an XPath path to an element. The path must contain an attribute that uniquely identifies each element along the path (In this case, the name attribute).
$DOMDocument->getNodePath();
returns the path, but no attributes. The attributes are neccessary as the XML will be changing quite a bit.
I am currently writing a method to manually go through and check each element in the path for the name attribute, then inserting it into the string at the appropriate point. Is there an easier/faster/not as hackish way of doing this?