Jump to content

FIND the nextSibling in XML (similar to the Javascript method)?


BizLab

Recommended Posts

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.