As I learned that by default, the DocumentBuilderFactory uses the built-in XML parser that comes with JAXP. How do I know what type of XML parser that is? I think that I can try to look up the System Property "javax.xml.parsers.DocumentBuilderFactory" to see what parser class that is used as default. But, how can I know what type of parser it is? I mean is that a SAX parser or DOM parser?
Also, in Java there is a class SAXParser. it also has a overloaded parse method which takes various type of input parameters. How is this class being used? any samples that you can share? the parse method in SAXParser is defined with a void, which indicates not return anything, not like the parse method above from DocumentBuilder which returns a Document. I seem to have some confusion here.