Get single XML element from file in Java
Hello,
I am using this to get the value of one element (value inside element):
Node m = doc.getElementsByTagName("title").item(0);
Node node = m.getChildNode();
System.out.println(node.getNodeValue());
Although it is unsuccessful as it does not compile: says that it cannot find symbol for getchildnode().
I have imported the right classes.
Is there another way of doing this or can you advise on what I have shown.
Cheers

