public class TagSoupParser extends Object
InputStream
into an | Modifier and Type | Class and Description |
|---|---|
static class |
TagSoupParser.ElementLocation
Describes a DOM Element location.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
ELEMENT_LOCATION |
| Constructor and Description |
|---|
TagSoupParser(InputStream input,
String documentURI) |
TagSoupParser(InputStream input,
String documentURI,
String encoding) |
| Modifier and Type | Method and Description |
|---|---|
Document |
getDOM()
Returns the DOM of the given document URI.
|
DocumentReport |
getValidatedDOM(boolean applyFix)
Returns the validated DOM and applies fixes on it if applyFix
is set to
true. |
public static final String ELEMENT_LOCATION
public TagSoupParser(InputStream input, String documentURI)
public TagSoupParser(InputStream input, String documentURI, String encoding)
public Document getDOM() throws IOException
IOExceptionpublic DocumentReport getValidatedDOM(boolean applyFix) throws IOException, ValidatorException
true.applyFix - true. The reports contains also information about the activated rules and the
the detected issues.IOExceptionValidatorExceptionCopyright © 2010-2013 The Apache Software Foundation. All Rights Reserved.