com.sun.msv.verifier

Class ErrorInfo.BadTagName

Enclosing Class:
ErrorInfo

public static class ErrorInfo.BadTagName
extends ErrorInfo.ElementErrorInfo

Bad tag name.

This type of error occurs when MSV finds an unexpected tag name. For example:

  1. When a tag name appears where it is not valid to appear.
    
     <html><head></head><head></head><body></body></html>
     
  2. When there is a typo in the tag name.
    
     <html><heed> ... </heed><body></body></html>
  3. When an element appears where no element is allowed at all.
    
     <html><head><meta><junk/></meta></head></html>

This error is reported when the startElement callback is called.

Nested Class Summary

Nested classes/interfaces inherited from class com.sun.msv.verifier.ErrorInfo

ErrorInfo.BadAttribute, ErrorInfo.BadTagName, ErrorInfo.BadText, ErrorInfo.ElementErrorInfo, ErrorInfo.IncompleteContentModel, ErrorInfo.MissingAttribute

Field Summary

Fields inherited from class com.sun.msv.verifier.ErrorInfo.ElementErrorInfo

localName, namespaceURI, qName

Constructor Summary

BadTagName(String qn, String ns, String loc)
BadTagName(StartTagInfo sti)

Constructor Details

BadTagName

public BadTagName(String qn,
                  String ns,
                  String loc)

BadTagName

public BadTagName(StartTagInfo sti)