| java.lang.Object com.memoire.vainstall.builder.util.XmlUtil
XmlUtil | public class XmlUtil (Code) | | This class contains static convenient methods for parsing of XML files
and getting data out of the document
It also has some non-xml methods which has to be removed when
the builder is properly integrated with the VAInstall code.
author: Henrik Falk version: $Id: XmlUtil.java,v 1.1 2001/09/28 19:41:42 hfalk Exp $ |
Field Summary | |
final public static boolean | IS_MAC | final public static boolean | IS_ROOT | final public static boolean | IS_UNIX | final public static boolean | IS_WIN |
Constructor Summary | |
public | XmlUtil() |
IS_MAC | final public static boolean IS_MAC(Code) | | |
IS_ROOT | final public static boolean IS_ROOT(Code) | | |
IS_UNIX | final public static boolean IS_UNIX(Code) | | |
IS_WIN | final public static boolean IS_WIN(Code) | | |
findVAISharedDir | public static File findVAISharedDir()(Code) | | |
getAttribute | public static String getAttribute(NamedNodeMap map, String attribute)(Code) | | Returns the value of an node attribute as string from a NamedNodeMap
Parameters: map - a NamedNodeMap Parameters: attribute - a attribute the string value of an attribute for an NamedNodeMap. |
getAttribute | public static String getAttribute(Node node, String attribute)(Code) | | Returns the value of an node attribute as string
Parameters: node - a Node Parameters: attribute - a attribute the string value of an attribute for a Node |
getAttributeAsInt | public static int getAttributeAsInt(NamedNodeMap map, String attribute)(Code) | | Returns the value of an node attribute as integer from a NamedNodeMap
Parameters: map - a NamedNodeMap Parameters: attribute - a attribute the integer value of an attribute for an NamedNodeMap. |
parse | public static Document parse(String uri, String dtdname) throws XmlParseException(Code) | | Parse an URI validating or non-validating and returns a Document
Parameters: uri - The URI of the document Parameters: dtd - The name of the DTD file a XML Document throws: com.memoire.vainstall.builder.XmlParseException - |
|
|