What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

What is a node?

droid15

Member
I am doing this tutorial but can't figure out what a node is... Don't give me a link to google because if an easy enough explanation was on Google when I searched it then I wouldn't be making this thread.
 
Well depending on context it can be anything.

Buuut since he's talking about .xml files, specifically strings.xml it's everything in the xml document... anything in a .xml is a node, and is a node of another node, etc... just a big tree of nodes. Just like trees have branches with other branches on them that have branches coming out of them, xml has nodes with nodes inside nodes inside other nodes.

So in that xml document you have

<Resources>
....
</resources>

That whole thing is a node. But in that node you have some
<string>...</string>
each one of those is a node.

So in the resources node there's 3 string nodes.

Make sense? If not..

Code:
<node 1>
    <node 2>.....</node 2>
    <node 3>.....</node 3>
</node 1>

should make more sense.
 
Last edited:
Back
Top