Lying in bed awake at 5:00 AM, an idea occurred to me: what if I'm using libraries that clash? Here's the relevant portion of my imports:
This appears to be the same as that on the code that parses the XML quickly. Still, I worry that there are two different sources for parsing XML. I ran through the various declarations and discovered that there are multiple versions of "Document", "Node", and other such classes; it appears that there are versions from the javax library as well as from org.w3c.dom.css. Are there any guidelines as to organizing these? Looking over the Java docs at
http://docs.oracle.com/javase/7/docs, I found that there are some major differences between the javax versions and the w3c versions. I searched around this site and found nothing. Searching around the Internet, I came across this article
http://www.vogella.com/tutorials/JavaXML/article.html, which urges me to use StaX, and provides sample code. I am tempted to try this, but I'd like to get some advice on this before I take the leap. Is this fellow correct in asserting that the DOM and SAX approaches are obsolete? Is StaX the "only way to fly" these days?
I'll get to work on documenting time delays at various parts in the code.