I'm new to XML. I'm studying the javax.xml.parsers package. This package is 4 classes. Interested in DocumentBuilderFactory and DocumentBuilder. (SAX is not touching).
- question on the factory class. As I understand it, a factory can load a third-party class and use its implementation (method newInstance (String factoryClassName, ClassLoader classLoader)). And what does the newInstance () method do that without parameters? loads the default implementation of this factory?
- question on DocumentBuilder. Depending on the implementation, the factory returns this DocumentBuilder. What kind of object is this parser object itself? If so who is it written by?
- What is the DOMParser class? I found in one book that the author works directly with him, without any factories. And besides, this DOMPaser is somehow strange - you cannot create a new document with it.
- What is JAXP? Is it a library for working with XML in java?