org.jSyncManager.API.Conduit.Tools
Class ExpenseDBXML
public class ExpenseDBXML
This is a synchronization JConduit for ax XML document from the ExpenseDB database.
Each element in the record will be a double-quoted String, escaped if necessary.
static String | XMLNAME- org.w3c.dom.Document document
|
ExpenseDBXML()- Create new JSXMLDocument with default name and ExpenseDB DTD entity.
|
ExpenseDBXML(InputStreamReader inputfile)- Create new ExpenseDBScanner with InputStreamReader stream input.
|
ExpenseDBXML(ExpenseRecord rec)- Create new JSXMLDocument with given ExpenseRecord.
|
ExpenseDBXML(org.jdom.Document document)- Create new JSXMLDocument with given JSXMLDocument.
|
XMLNAME
public static String XMLNAME
org.w3c.dom.Document document
ExpenseDBXML
public ExpenseDBXML()
Create new JSXMLDocument with default name and ExpenseDB DTD entity.
ExpenseDBXML
public ExpenseDBXML(InputStreamReader inputfile)
throws org.jdom.JDOMException,
IOExceptionCreate new ExpenseDBScanner with InputStreamReader stream input.
inputfile - InputStreamReader
ExpenseDBXML
public ExpenseDBXML(ExpenseRecord rec)
Create new JSXMLDocument with given ExpenseRecord.
ExpenseDBXML
public ExpenseDBXML(org.jdom.Document document)
Create new JSXMLDocument with given JSXMLDocument.
document - The JSXMLDocument to be read and input.
getDTD
public String getDTD()
Get the complete DTD for this database type.
- getDTD in interface DLPRecordXML
- String containing complete DTD, delimited by System.Properties.line.separator
insertRecord
public ExpenseRecord insertRecord(ExpenseRecord rec)
Insert ExpenseRecord into XML Document.
rec - ExpenseRecord input.
- Return the ExpenseRecord for further processing.
readDocument
public void readDocument(InputStreamReader inputfile)
throws org.jdom.JDOMException,
IOExceptionRead JSXMLDocument through InputStreamReader and parse into XML Document.
- readDocument in interface JSXMLDocument
inputfile - InputStreamReader input.