public static class ErrorInfo.BadAttribute extends ErrorInfo.ElementErrorInfo
This is an error when the attribute name is wrong, or the attribute value is wrong. For example:
This error is reported in the startElement callback.
Currently, the application cannot easily distinguish whether this error is caused by an invalid attribute value, or invalid attribute name. It is also non-trivial for MSV to detect this difference correctly. But there maybe applications to which this difference is important. I welcome any comments on this issue.
ErrorInfo.BadAttribute, ErrorInfo.BadTagName, ErrorInfo.BadText, ErrorInfo.ElementErrorInfo, ErrorInfo.IncompleteContentModel, ErrorInfo.MissingAttribute
Modifier and Type | Field and Description |
---|---|
java.lang.String |
attLocalName |
java.lang.String |
attNamespaceURI |
java.lang.String |
attQName
information about the attribute that caused the error.
|
java.lang.String |
attValue |
localName, namespaceURI, qName
Modifier | Constructor and Description |
---|---|
protected |
BadAttribute(StartTagInfo sti,
java.lang.String qn,
java.lang.String ns,
java.lang.String loc,
java.lang.String v) |
public final java.lang.String attQName
public final java.lang.String attNamespaceURI
public final java.lang.String attLocalName
public final java.lang.String attValue
protected BadAttribute(StartTagInfo sti, java.lang.String qn, java.lang.String ns, java.lang.String loc, java.lang.String v)