opennlp.tools.formats.muc

## Class SgmlParser

- java.lang.Object
- - opennlp.tools.formats.muc.SgmlParser

-     public class SgmlParser
      extends Object

  SAX style SGML parser.

  Note:
  The implementation is very limited, but good enough to parse the MUC corpora. Its must very likely be extended/improved/fixed to parse a different SGML corpora.

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `SgmlParser.ContentHandler`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SgmlParser()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `parse(Reader in, SgmlParser.ContentHandler handler)`

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SgmlParser

          public SgmlParser()

  - ### Method Detail

    - #### parse

          public void parse(Reader in,
                            SgmlParser.ContentHandler handler)
                     throws IOException

      Throws:
        `IOException`

Copyright © 2026 The Apache Software Foundation. All rights reserved.