com.bstek.dorado.core.xml
public class XercesXmlDocumentBuilder extends java.lang.Object implements XmlDocumentBuilder
| Constructor and Description |
|---|
XercesXmlDocumentBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.xml.parsers.DocumentBuilder |
getDocumentBuilder() |
org.w3c.dom.Document |
loadDocument(Resource resource)
解析resource中的XML资源并返回DOM对象。
|
org.w3c.dom.Document |
loadDocument(Resource resource,
java.lang.String charset)
解析resource中的XML资源并返回DOM对象。
|
org.w3c.dom.Document |
newDocument()
创建一个空的XMLDocument对象。
|
protected javax.xml.parsers.DocumentBuilder getDocumentBuilder()
throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationExceptionpublic org.w3c.dom.Document newDocument()
throws java.lang.Exception
XmlDocumentBuildernewDocument in interface XmlDocumentBuilderjava.lang.Exceptionpublic org.w3c.dom.Document loadDocument(Resource resource) throws java.lang.Exception
XmlDocumentBuilderloadDocument in interface XmlDocumentBuilderresource - 资源描述对象。java.lang.Exceptionpublic org.w3c.dom.Document loadDocument(Resource resource, java.lang.String charset) throws java.lang.Exception
XmlDocumentBuilderloadDocument in interface XmlDocumentBuilderresource - 资源描述对象。charset - 字符集。java.lang.ExceptionCopyright © 2001-2011 www.BSTEK.com All Rights Reserved.