jitas.xml.writer
Class XMLWriter

java.lang.Object
  extended by jitas.xml.writer.XMLWriter
Direct Known Subclasses:
AllDomainsWriter, StudentModelWriter, StudentWriter

public abstract class XMLWriter
extends java.lang.Object

The abstract class provides the basic functions for users to write the content to XML file.

Version:
22 August 2007
Author:
DeathMarch (c314g2)

Constructor Summary
XMLWriter()
           
 
Method Summary
 org.w3c.dom.Document loadXML(java.lang.String pathName)
          Load the XML file with given path name.
 void writeToXML(org.w3c.dom.Document parsedDoc, java.lang.String pathName)
          Write the content to XML file with given document and path name If something goes wrong, and the file can't write, we don't write anything.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLWriter

public XMLWriter()
Method Detail

loadXML

public org.w3c.dom.Document loadXML(java.lang.String pathName)
Load the XML file with given path name. If the pathName doesn't exist, we will attempt to create it, and we will return an empty Document. If our creation of a file was unsuccessful, we print an error to the log, and return a null Document.

Parameters:
pathName -
Returns:
parsedDoc

writeToXML

public void writeToXML(org.w3c.dom.Document parsedDoc,
                       java.lang.String pathName)
Write the content to XML file with given document and path name If something goes wrong, and the file can't write, we don't write anything.

Parameters:
parsedDoc -