HackerTrans
TopNewTrendsCommentsPastAskShowJobs

EliAndrewC

no profile record

comments

EliAndrewC
·18년 전·discuss
I 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년 전·discuss
On 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.