BizLab Posted July 9, 2010 Share Posted July 9, 2010 Does anyone know how to find the next sibling of an XML node? I've seen 2 functions : next_sibling and nextSibling, but i can't get either to work, and both throw the undefined function error. PHP 5+ Link to comment https://forums.phpfreaks.com/topic/207283-find-the-nextsibling-in-xml-similar-to-the-javascript-method/ Share on other sites More sharing options...
BizLab Posted July 9, 2010 Author Share Posted July 9, 2010 So, i did a walk around for this problem. I found the node that i was searching for, then moved up a level to grab the parent node, then just looped through all the child nodes until i found the one i was looking for. I would still like to know how i can find the next sibling though Link to comment https://forums.phpfreaks.com/topic/207283-find-the-nextsibling-in-xml-similar-to-the-javascript-method/#findComment-1083804 Share on other sites More sharing options...
ignace Posted July 9, 2010 Share Posted July 9, 2010 Post your code. Link to comment https://forums.phpfreaks.com/topic/207283-find-the-nextsibling-in-xml-similar-to-the-javascript-method/#findComment-1083806 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.