//1)<Root> <A>a</A><B>a</B></Root>
//2)<Root><A>a</A><B>a</B></Root>
Node n = XPathAPI.selectSingleNode(domDoc, "//Root");
System.out.println(n.getFirstChild().getNodeName()); // 1)#text 2)A
The ouput is different depending on the space, tab,return or other charactors.
I want to get number 2) no matter what the charactor is in.
Thanks.
//2)<Root><A>a</A><B>a</B></Root>
Node n = XPathAPI.selectSingleNode(domDoc, "//Root");
System.out.println(n.getFirstChild().getNodeName()); // 1)#text 2)A
The ouput is different depending on the space, tab,return or other charactors.
I want to get number 2) no matter what the charactor is in.
Thanks.