EliAndrewC·18 ปีที่แล้ว·discussI think the common case could be even simpler Document doc = DocumentBuilder.parse("test.xml"); no need to manually create an instance of the builder.
EliAndrewC·18 ปีที่แล้ว·discussOn a similar note, the code parse an XML document in Java: Document doc = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse("test.xml"); That's not even a framework; it's just what's in the standard library for parsing XML.
no need to manually create an instance of the builder.