view src/test/java/jungle/misc/fj/XMLNodeTest.java @ 7:c3c65308a11b

removed some package and added Graph API
author shoshi <shoshi@cr.ie.u-ryukyu.ac.jp>
date Fri, 29 Jun 2012 00:03:12 +0900
parents
children abed5bd92fcb
line wrap: on
line source

package jungle.misc.fj;

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

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

public class XMLNodeTest
{
	public static void main(String _args[]) throws Exception
	{
		DocumentBuilder b = DocumentBuilderFactory.newInstance().newDocumentBuilder();
		Document d = b.newDocument();
		
		Element e = d.createElement("hoge");
		NodeList l1 = e.getElementsByTagName("hoge");
		NodeList l2 = e.getElementsByTagName("hoge");
		System.out.println(l1.toString());
		System.out.println(l2.toString());
	}
}