HackerTrans
トップ新着トレンドコメント過去質問紹介求人

EliAndrewC

no profile record

コメント

EliAndrewC
·18 年前·議論
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 年前·議論
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.