public static class ErrorInfo.BadText extends ErrorInfo
This type of errors indicate that the document contains PCDATA but it is not good. Here are typical examples of this error.
... ** invalid text ** ...
five
Usually, the user can fix this error by removing or chaning the text.
MSV validates text after it collects the whole string. That means
MSV does not validate text in the SAX's characters
callback.
As a result, this error is reported after
the next start tag or end tag is found.
For example, in the above example, the error is reported when MSV
reads <body>
(start tag) and
</length>
(end tag) respectively.
ErrorInfo.BadAttribute, ErrorInfo.BadTagName, ErrorInfo.BadText, ErrorInfo.ElementErrorInfo, ErrorInfo.IncompleteContentModel, ErrorInfo.MissingAttribute
Modifier and Type | Field and Description |
---|---|
String |
literal
The actual text that caused the error.
|
Constructor and Description |
---|
BadText(String _literal) |
BadText(StringBuffer _literal) |
public final String literal
public BadText(String _literal)
public BadText(StringBuffer _literal)
Copyright © 2016 Oracle Corporation. All rights reserved.