php - How to get path to curent node with simplexml? -


i need path node in simplexml oject? domdocument->getnodepath()

foreach ($xml->xpath('.//tag-defs') $tagdef) {    $path = $tagdef->*getnodepath()* //i need reciev path "/*/*[3]/*[1]" } 

p.s. can't use domdocument!


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -