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> <!-- head cannot appear here -->
       <body> ... </body>
     </html>
     </pre>
     
     
  2. When there is a typo in the tag name.
    
     <html>
       <heed> ... </heed> <!-- typo -->
       <body> ... </body>
     </pre>
     
     
  3. When an element appears where no element is allowed at all.
    
     <html>
       <head>
         &lt;meta ...>
           <junk/>   <!-- meta cannot have any children -->
     

This error is reported when the startElement callback is called.