/**
* @param document
* @param node
* @param index
* @return element value
* getTag(Document document, String node,int index)
*/
public static String getTag(Document document, String node,int index)
{
NodeList nodeList = document.getElementsByTagName(node);
String returnString = "";
if (nodeList != null && nodeList.getLength() > 0) {
nodeList = nodeList.item(index).getChildNodes();
if (nodeList != null && nodeList.getLength() > 0) {
returnString = nodeList.item(0).getNodeValue();
}
}
return returnString;
}
I hope to share my knowledge with the others in software and networking industry
Get Tag value fro XML Document(org.w3c.dom.Document) -Blackberry Java development
Subscribe to:
Post Comments (Atom)
Empowering the Future of API Management: Unveiling the Journey of WSO2 API Platform for Kubernetes (APK) Project and the Anticipated Alpha Release
Introduction In the ever-evolving realm of API management, our journey embarked on the APK project eight months ago, and now, with great a...
-
Remove current installation of Nginx sudo apt-get purge nginx nginx-common nginx-full Install Nginx sudo apt-get install nginx Edit c...
-
Here i'm explaining solution for manage multiple API Manager environments and external key management server to build central API r...
-
When we calling an API, we request for an oauth token which we send with each API call. The reason for introduce OpenID on top of oauth 2...
Thanks for saving my time :)
ReplyDelete