org.jSyncManager.API.Conduit.Tools
Class ToDoListDBXML
public class ToDoListDBXML
This is a synchronization JConduit for ax XML document from the ToDoListDB database.
Each element in the record will be a double-quoted String, escaped if necessary.
RECORDNAME
public static String RECORDNAME
XMLNAME
public static String XMLNAME
JSXMLElement document
ToDoListDBXML
public ToDoListDBXML()
Create new JSXMLDocument with default name and ToDoListDB DTD entity.
ToDoListDBXML
public ToDoListDBXML(InputStreamReader inputfile)
throws org.jdom.JDOMException,
IOExceptionCreate new ToDoListDBScanner with InputStreamReader stream input.
inputfile - InputStreamReader
ToDoListDBXML
public ToDoListDBXML(JSXMLDocument document)
Create new JSXMLDocument with given JSXMLDocument.
document - The JSXMLDocument to be read and input.
ToDoListDBXML
public ToDoListDBXML(ToDoListRecord rec)
Create new JSXMLDocument with given ToDoListRecord.
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 ToDoListRecord insertRecord(ToDoListRecord rec)
Insert ToDoListRecord into XML Document.
rec - ToDoListRecord input.
- Return the ToDoListRecord for further processing.
readDocument
public void readDocument(InputStreamReader inputfile)
throws IOException,
JDOMExceptionRead JSXMLDocument through InputStreamReader and parse into XML Document.
- readDocument in interface JSXMLDocument
inputfile - InputStreamReader input.