は、ルート・ノードを取得するためにDOMを使用して、その後childNodeが及びgrandChildNodeを循環が効率的であるか、または子の詳細情報を収集するために、XPath式を使用し、孫が効率的にノード以下のxmlDom4JでDOMを使用する場合と比較してXPathの効率はどれくらいですか?例えば
<root>
<childNode attribute1="value1">
<grandChildNode attrib1="val1" attrib2="val2">some content1
</grandChildNode>
<grandChildNode attrib1="val1" attrib2="val2">some content2
</grandChildNode>
<grandChildNode attrib1="val1" attrib2="val2">some content3
</grandChildNode>
</childNode>
<childNode attribute1="value1">
<grandChildNode attrib1="val1" attrib2="val2">some content1
</grandChildNode>
<grandChildNode attrib1="val1" attrib2="val2">some content2
</grandChildNode>
<grandChildNode attrib1="val1" attrib2="val2">some content3
</grandChildNode>
</childNode>
<childNode attribute1="value1">
<grandChildNode attrib1="val1" attrib2="val2">some content1
</grandChildNode>
<grandChildNode attrib1="val1" attrib2="val2">some content2
</grandChildNode>
<grandChildNode attrib1="val1" attrib2="val2">some content3
</grandChildNode>
</childNode>
</root>
うを検討しますか?