473,395 Members | 1,689 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

what is meant by nextsibling?

please help me that what is meant by nextsibling?
Oct 17 '06 #1
1 2286
for future refrence this is a very vauge question. might want to include where you found it. the line of code it was used on. or better yet the function it is used in.

anyway nextsibling is most often used in parseing xml. it basicaly means to move to the next sibling in a tree. for example if we had the xml document

<Colors>
</Red>
</Green>
</Blue>
</Colors>
<Trees>
</Maple>
</Elm>
</Willow>
</Trees>

if we just opened the document we would be at the <Colors> tag
Red, Green, and Blue are all children of Colors
Trees is a sibling and likewise Maple, Elm, and Willow are children of Trees.
with this said if you called next sibling on the xml document you would be at Trees.
Oct 17 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Paweł Gałecki | last post by:
I wrote a following function just for testing purposes: <html> <head> <script> function show(obj) { alert(obj.previousSibling.rowIndex) alert(obj.rowIndex) alert(obj.nextSibling.rowIndex) }...
12
by: BillKi | last post by:
I am trying to use nextSibling to move focus to the next input (text box). Here's the script: function CheckFieldLength(e, i) { // don't move automatically forward if a tab or shift-tab was...
5
by: 2obvious | last post by:
During the window.onload event, I set the .onclick event of an element to turn off the display of the first two elements in a <div> called "content": var objNode =...
6
by: yoyoyo | last post by:
hi guys, i'm developing a function that having as argument the branch of a structured tree returns the tree showing only the parents of that branch.. the function that doesn't work is the...
6
by: Marc | last post by:
This is probably a no brainer for the most of you but my head is spinning at the moment. Considering the following list how do I get a reference to the ul just below the li with id products?...
2
by: VK | last post by:
Is there any functional or contextual difference between elemRef.firstChild and elemRef.nextSibling ? From MDC I did not get any.
11
by: ctman770 | last post by:
Hi Everyone, Is it faster to save the precise location of an html dom node into a variable in js, or to use getElementById everytime you need to access the node? I want to make my application...
1
gregerly
by: gregerly | last post by:
I'm trying to access the next sibling of a <li> which happens to be another <li> The code looks like this: <div id='tutorials'> <ul> <li>Some List</li> <li class='Desc' id='RANDOMID'>Some...
3
by: phub11 | last post by:
Hi all, I have a routine that checks to see if an ID has been set for the next row down in a table. Everything works fine except if I'm on the last row and no row exists; the routine just hangs: ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.