Extracting Headings and paragraphs separately from xml files in Java

I first converted the xml file to a string and then tried searching for specific tags in the file. However, the string files are incredibly long (about 1.5 billion characters), so the search often takes a few minutes to just count how many headings there are. Is there a better way to do this? Or a set method for extracting data.


Source: xml

Leave a Reply