Android examples for XML:Namespace
get Boolean By XML Tag Name namespace
//package com.java2s; import org.w3c.dom.Element; import org.w3c.dom.NodeList; public class Main { public static Boolean getBooleanByTagNameNS(Element paramElement, String paramString1, String paramString2) { Boolean localBoolean = null; if (paramElement != null) { NodeList localNodeList = paramElement.getElementsByTagNameNS( paramString1, paramString2); if (localNodeList.getLength() == 1) localBoolean = Boolean.valueOf(Boolean .parseBoolean(((Element) localNodeList.item(0)) .getTextContent())); }//from ww w . j a v a2 s . co m return localBoolean; } }