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

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -