public class XmlDocumentSource extends FileSource
Note that changes to the document sources are not picked up, so the driver must be shut down and restarted in order to get changed documents.
Constructor and Description |
---|
XmlDocumentSource(java.lang.String dnBase,
java.io.File pathBase)
Construct a XmlDocumentSource with the passed bases.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Document |
getXmlDocument(java.lang.String path)
Find and parse an XML document in the directory or
file system.
|
getFile, getFile, resolveFilename
public XmlDocumentSource(java.lang.String dnBase, java.io.File pathBase)
pathBase
- Base location for files in file system.dnBase
- Base location for objects in directory.public org.w3c.dom.Document getXmlDocument(java.lang.String path) throws java.io.IOException
path
- Path to XML document data.java.io.IOException
- If data not found or couldn't be
parsed as XML data.