| java.lang.Object org.enhydra.xml.XMLDocumentFactory
XMLDocumentFactory | public class XMLDocumentFactory (Code) | | author: Tweety author: A class for manipulating the entire xml file (reading, writing...). version: 1.0 |
Inner Class :static class UtilErrorHandler implements ErrorHandler | |
Method Summary | |
public String | getFileName() Returns xml file name. | public static Document | parse(String fileName) Parses xml file with the given name and creates Document .
Parameters: fileName - xml file name. | public Document | parse() Parses xml file and creates creates Document . | public static void | serialize(Node node, String fileName, Properties prop) Serializes node with all subnodes to the xml file with the given name,
and with the Properties of the xml declaration. | public void | serialize(Node node) Serializes node with all subnodes to the xml file
with the default Properties of the xml declaration. |
XMLDocumentFactory | public XMLDocumentFactory()(Code) | | Constructs an empty XMLDocumentFactory
|
XMLDocumentFactory | public XMLDocumentFactory(String fileName)(Code) | | Constructs a XMLDocumentFactory with the given
Parameters: fileName - as String |
getFileName | public String getFileName()(Code) | | Returns xml file name.
xml file name. |
parse | public static Document parse(String fileName)(Code) | | Parses xml file with the given name and creates Document .
Parameters: fileName - xml file name. document. |
parse | public Document parse()(Code) | | Parses xml file and creates creates Document .
object of document |
serialize | public static void serialize(Node node, String fileName, Properties prop)(Code) | | Serializes node with all subnodes to the xml file with the given name,
and with the Properties of the xml declaration.
Parameters: node - root node of the document. Parameters: fileName - xml file name Parameters: prop - Properties of the xml declaration. |
serialize | public void serialize(Node node)(Code) | | Serializes node with all subnodes to the xml file
with the default Properties of the xml declaration.
Parameters: node - root node of the document. |
|
|