| java.lang.Object org.cougaar.tools.csmart.util.XMLUtils
All known Subclasses: org.cougaar.tools.csmart.core.cdata.ComponentDataXML, org.cougaar.tools.csmart.ui.viewer.OrganizerXML,
XMLUtils | public class XMLUtils (Code) | | XMLUtils.java
Basic utilities for parsing and writing XML files.
Created: Wed Jun 5 10:41:48 2002
|
Method Summary | |
public static Document | loadXMLFile(String filename) Loads and parses an XML file into a Document
Parameters: filename - Name of file to load. | public static Document | loadXMLFile(File file) Loads and parses and XML file into a Document
Parameters: file - - Handle to xml file. | public static void | writeXMLFile(File configDir, Node node, String name) Writes the contents of the Node to the specified
file, in XML format. |
XMLUtils | public XMLUtils()(Code) | | |
loadXMLFile | public static Document loadXMLFile(String filename)(Code) | | Loads and parses an XML file into a Document
Parameters: filename - Name of file to load. a Document value, null on error or nonexistent file |
loadXMLFile | public static Document loadXMLFile(File file) throws FileNotFoundException(Code) | | Loads and parses and XML file into a Document
Parameters: file - - Handle to xml file. a Document value, null on error |
writeXMLFile | public static void writeXMLFile(File configDir, Node node, String name) throws IOException(Code) | | Writes the contents of the Node to the specified
file, in XML format.
Parameters: configDir - - Directory to write new xml file. Parameters: node - - Document Node to dump to xml file. Parameters: name - - Name of the new xml file. See Also: org.w3c.dom.Node exception: IOException - if an error occurs |
|
|