Android examples for XML:Namespace
get String By XML Tag Name Namespace
//package com.java2s; import org.w3c.dom.Element; import org.w3c.dom.NodeList; public class Main { public static String getStringByTagNameNS(Element paramElement, String paramString1, String paramString2) { String str = ""; if (paramElement != null) { NodeList localNodeList = paramElement.getElementsByTagNameNS( paramString1, paramString2); if (localNodeList.getLength() == 1) str = ((Element) localNodeList.item(0)).getTextContent(); }/* w w w. j a v a2 s .c o m*/ return str; } }