Class XMLParser
java.lang.Object
org.episteme.social.linguistics.loaders.tigerxml.core.XMLParser
Provides static XML parsing functionality.
* $Id: XMLParser.java,v 1.2 2007-10-21 17:47:08 virtualcall Exp $
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionParses the a given XML corpus file.intGets the currently set level of verbosity of this instance.voidsetVerbosity(int verbosity) Sets the currently set level of verbosity of this instance.booleansetXMLFileName(String xmlFileName) Sets the XML file to be parsed.
-
Constructor Details
-
XMLParser
-
XMLParser
-
-
Method Details
-
getDOMRootElement
Parses the a given XML corpus file.- Returns:
- The root element of the DOM built from this instances XML file.
-
getXMLFileName
-
setXMLFileName
Sets the XML file to be parsed.- Parameters:
xmlFileName-- Returns:
Trueif the file is readable,falseif not.
-
getVerbosity
public int getVerbosity()Gets the currently set level of verbosity of this instance. The higher the value the more information is written to stderr.- Returns:
- The level of verbosity.
-
setVerbosity
public void setVerbosity(int verbosity) Sets the currently set level of verbosity of this instance. The higher the value the more information is written to stderr.- Parameters:
verbosity- The level of verbosity.
-