|
Transfer version 1.1 | ||||
| FRAMES | |||||
WEB-INF.cftags.component
transfer.com.io.XMLFileReader
public class XMLFileReader
Reads XML files and performs operations on them
| Constructor Summary | |
|---|---|
init(string path, string xsd)
Constructor |
|
| Method Summary | |
|---|---|
private void |
addPath(string path)
add a path to the path list |
void |
addXML(string path, [boolean overWrite='false'])
adds some XML to the reader |
private void |
executeIncludes(xml xml)
find all the includes in this file, and include them |
string |
getPathList()
|
private array |
getXMLCollection()
|
private string |
getXSD()
|
array |
search(string xpath)
Searches the xml via an xpath |
private void |
setPathList(string pathList)
|
private void |
setXMLCollection(array XMLCollection)
|
private void |
setXSD(string XSD)
|
private any |
throw(string type, string message, [string detail=''])
Throws an Exception |
private void |
validate(xml xml, string xmlPath)
validates some XML, and handles the error |
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(string path, string xsd)
path - Absolute path to the filexsd - the path to the xml shema file to validate against| Method Detail |
|---|
private void addPath(string path)
path - the path to addpublic void addXML(string path, [boolean overWrite='false'])
path - the path to the XML to be read in and addedoverWrite - whether or not overwrite the previous set of configurationsprivate void executeIncludes(xml xml)
xml - the xml to validatepublic string getPathList()
private array getXMLCollection()
private string getXSD()
public array search(string xpath)
xpath - The xpath to search underprivate void setPathList(string pathList)
pathListprivate void setXMLCollection(array XMLCollection)
XMLCollectionprivate void setXSD(string XSD)
XSDprivate any throw(string type, string message, [string detail=''])
type - The type of exceptionmessage - The message to accompany the exceptiondetail - The detail message for the exceptionprivate void validate(xml xml, string xmlPath)
xml - the xml to validatexmlPath - the path to the xml
|
Transfer version 1.1 | ||||
| FRAMES | |||||