DOM的调用方法看上去跟SAX也很类似:
DOM的调用方法看上去跟SAX也很类似:
DOM的调用方法看上去跟SAX也很类似:
/**//*
* Created on 2005-2-24
* All rights reserved.
*
*/
package sean.home.test;
import java.io.File;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
/**//**
* @author Sean GAO
*
*
*/
public class DOMTest {
public static void main(String[] args) throws Exception
* Created on 2005-2-24
* All rights reserved.
*
*/
package sean.home.test;
import java.io.File;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
/**//**
* @author Sean GAO
*
* gaoyuxiang@gmail.com
*
*
*/
public class DOMTest {
public static void main(String[] args) throws Exception
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10294527/viewspace-122473/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/10294527/viewspace-122473/