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.ParserConfigurationException
public org.w3c.dom.Document newDocument() throws java.lang.Exception
XmlDocumentBuilder
newDocument
in interface XmlDocumentBuilder
java.lang.Exception
public org.w3c.dom.Document loadDocument(Resource resource) throws java.lang.Exception
XmlDocumentBuilder
loadDocument
in interface XmlDocumentBuilder
resource
- 资源描述对象。java.lang.Exception
public org.w3c.dom.Document loadDocument(Resource resource, java.lang.String charset) throws java.lang.Exception
XmlDocumentBuilder
loadDocument
in interface XmlDocumentBuilder
resource
- 资源描述对象。charset
- 字符集。java.lang.Exception
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.