All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.easai.text.XML Maven / Gradle / Ivy

There is a newer version: 0.1.6
Show newest version
package com.github.easai.text;

import java.net.URL;

import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;

import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;

public class XML {

	/**
	 * Gets the first Node whose tag name is key.
	 * 
	 * @param urlStr the URL
	 * @param key the key
	 * @return the top Node
	 */
	public static Node getFirstNode(String urlStr, String key)throws Exception{
		Node node=null;
		try {
			NodeList list=getNodeList(urlStr, key);		
			if(0




© 2015 - 2025 Weber Informatics LLC | Privacy Policy