How do I visit all attributes for a given element? I see that there's a "getAttrValue(String name)" to get the value for a known name, but I want to parse a file where I don't know the attribute names.
I think that you can just write an XPath for that
System.out.println("attr name "+vn.toString(i));
System.out.println("attr val "+vn.toString(i+1));
Log in to post a comment.