I would like to prepare function which will give me position of node in xml.
For example:
int NodePosition = doc.getDocumentElement().getChildNodes().item(t).getNodeName().Position() and in future I would like make some like this (of course this is example):
System.out.println(Node.row[NodePosition].tostring()); Is it possible to make something like this? Or maybe you know some function which make something like this.
For example when I go deeper there is a problem to get position. Because m = 7
doc.getDocumentElement().getChildNodes().item(t).getChildNodes().item(m) When I try make this (but I have to save position):
System.out.println(doc.getDocumentElement().getChildNodes().item(7).getNodeName()); I get error
java.lang.NullPointerException
i. Show us what you tried.