例如,给定< a>< b />< c />< d />< / a>是a.getChildNodes()保证按顺序返回带有b,c和d的NodeList吗?
javadoc对此并不清楚.
current = node.firstChild; while(null != current) { ... current = current.nextSibling; }