PHP Getting XPath of a DOMNode
- by user256007
I am creating an XML document on the fly. and I need to know the XPath of the Node I've just created.
I don't see any such function like DOMNode::calculateXPath(void):string
and I am not willing to write one by my own. is there any known lite 3rd party Solution ??