parsing xml to find elements in java
问题 I have to parse an xml document and have to get all the elements in the same. I have gone through example, where they are just providing the element name. I do not want to give the element name manually. So how could I get all the elements? I am having only the method name getElementsByTagName(elementName). Is there any other method to get the elements? <bookmap> <booktitle> <mainbooktitle>GMAT in a BOX </mainbooktitle> </booktitle> <frontmatter> <notices href="Topics/ref_GMAT_box_notices