I want to insert nodes which are fetched from other part of the program into a NodeList.
static void NodeCheck(Node node)
{
NodeList NodeArray = null;
for(int i=0;NodeArray.getLength()<=i;i++)
{
NodeArray.item(i)=node;
}
}
here it goes, the NetBeans gives me the error that I need a variable here not value. what would be the solution?
EDIT: Ok let change to this
NodeList NodeArray = null;
NodeArray.item(0)=node;
there is no iteration and still same error,,,,
EDIT NO.2: let me make my question more clear, how can I insert nodes (single nodes) into something like an array? ant idea? the reason to do this, is to compare them with each other to see weather they are same or different.