dynamically read xml element and value in java
I'm trying to read XML(whatever, i don't know it's structure, bcz i'm reading flie from server.), and i searched a lot on SO. but not found anything helpful. 1> i want to retrieve XML's node name, starting from root to end of file, child or child of child untill there's no child or sibling remaining. 2> in similar question, i found that they use tagname to retrieve value of that tag, so i want to pass that node name inside this to get value... is it possible to do dynamically. or have to follow same structure as in previous questions like statically add tagname to retrieve value. after doing