public class parseFile extends Object
The first parameter is the name of the file from which the information is to be obtained.
The second parameter is the tag list to be checked for. In this case parsing of the tags is case sensitive.
Example:
java bradleyross.demonstrations.parseFile test.txt "<html><body>"
This will give the contents of body
tags contained
within html
tags.
This application requires the appropriate XML jars, such as
xml-apis.jar
and xercesImpl.jar
, to be in the
CLASSPATH.
XmlParser
Constructor and Description |
---|
parseFile() |