com.adventnet.utilities.xml.dom
Class XMLDataWriter

java.lang.Object
  |
  +--com.adventnet.utilities.xml.dom.XMLDataWriter

public class XMLDataWriter
extends java.lang.Object

This Class is to write the XML data's given to the specified File.


Field Summary
(package private)  org.w3c.dom.Document xmlDoc
           
 
Constructor Summary
XMLDataWriter()
          Call writeXML for writing the XML content.
XMLDataWriter(java.lang.String fileName, XMLNode rootNode)
          The Constructor to write the Data in the specified File name.
XMLDataWriter(java.lang.String fileName, XMLNode rootNode, java.lang.String dtdSystemId)
          The Constructor to write the Data in the specified File name.
XMLDataWriter(java.io.Writer writer, XMLNode rootNode)
          The Constructor to write the Data in the specified File name.
 
Method Summary
static void main(java.lang.String[] args)
           
 void writeXML(java.io.Writer writer, XMLNode rootNode, java.lang.String dtdSystemId)
          can be used in conjunction with the default constructor.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

xmlDoc

org.w3c.dom.Document xmlDoc
Constructor Detail

XMLDataWriter

public XMLDataWriter()
Call writeXML for writing the XML content.

XMLDataWriter

public XMLDataWriter(java.lang.String fileName,
                     XMLNode rootNode)
The Constructor to write the Data in the specified File name.
Parameters:
fileName - The file name to write in.
rootNode - The root node for the XML Tree.

XMLDataWriter

public XMLDataWriter(java.lang.String fileName,
                     XMLNode rootNode,
                     java.lang.String dtdSystemId)
The Constructor to write the Data in the specified File name.
Parameters:
fileName - The file name to write in.
rootNode - The root node for the XML Tree.
dtdSystemId -  

XMLDataWriter

public XMLDataWriter(java.io.Writer writer,
                     XMLNode rootNode)
The Constructor to write the Data in the specified File name.
Parameters:
writer - The java.io.Writer to write the XML information.
rootNode - The root node for the XML Tree.
Method Detail

writeXML

public void writeXML(java.io.Writer writer,
                     XMLNode rootNode,
                     java.lang.String dtdSystemId)
              throws java.lang.Exception
can be used in conjunction with the default constructor.

main

public static void main(java.lang.String[] args)