fi.iki.hsivonen.xml
Class SAXUtils
java.lang.Object
fi.iki.hsivonen.xml.SAXUtils
public class SAXUtils
- extends Object
- Author:
- hsivonen, ykk@kallio.tky.hut.fi
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SAXUtils
public SAXUtils()
newNonvalidatingXMLReader
public static final XMLReader newNonvalidatingXMLReader()
- Instantiates a new
XMLReader
which is configured to be
non-validating. The entity resolver is set to the local DTD catalog. The
entity resolver doesn't connect to the network.
- Returns:
- a non-validating
XMLReader
newValidatingXMLReader
public static final XMLReader newValidatingXMLReader()
- Instantiates a new
XMLReader
which is configured to be
validating. The entity resolver is set to the local DTD catalog. The
entity resolver doesn't connect to the network.
- Returns:
- a validating
XMLReader
newTagSoupXMLReader
public static final XMLReader newTagSoupXMLReader()
- Instantiates a new
XMLReader
which can parse HTML but
appears to parse XHTML. Note: If you are parsing from a byte
stream, you must set the character encoding of the
InputSource
explicitly. Use MetadataExtractor
if in doubt.
- Returns:
- an
XMLReader
for parsing tag soup