摘要:
1. 根据标签(Tag)名获取元素(Elements)public static Element[] getElementsByTagNameNR(Element e, String tagName) { Vector elements = new Vector(); Node child = e.getFirstChild(); while (child != null) { if (child instanceof Element && child.getNodeName().equals(tagName)) { elements.add((Elem... 阅读全文