Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.teleal.lemma.reader.xml
Class XMLReader

    java.lang.Object
      org.teleal.lemma.reader.AbstractReader
          org.teleal.lemma.reader.xml.XMLReader

All Implemented Interfaces:
  Reader

    public class XMLReader

extends AbstractReader

Reads XML files - without parsing them.

This reader can process citations from any XML, XHTML, or HTML file - it does not parse the content. Its only job is to understand fragment labels embedded in XML comments.

It wraps the read content into a `<pre class="prettyprint"/>` tag, which helps you to detect XML code blocks in your output document, e.g. for a Javascript syntax highlighter.

Author:
  Christian Bauer

Field Summary
`static String` | `CONTEXT_BASE_DIRECTORY`
`protected ContentFilter[]` | `filters`
`protected ContentFileHandler` | `handler`
`static Pattern` | `PATTERN_FRAGMENT_LABEL`
`protected ContentPrinter` | `printer`

Constructor Summary
`XMLReader()`

Method Summary
`protected void` | `appendContent(org.teleal.common.xhtml.XHTMLElement parent, File file, CitationAnchor citation)`
`org.teleal.common.xhtml.XHTML` | `read(CitationAnchor citation, Context context)`

Methods inherited from class org.teleal.lemma.reader.AbstractReader
`appendTitle, getParser, getXPath, resolveFile`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### CONTEXT_BASE_DIRECTORY

    public static final String CONTEXT_BASE_DIRECTORY

See Also:
  Constant Field Values

### PATTERN_FRAGMENT_LABEL

    public static final Pattern PATTERN_FRAGMENT_LABEL

### handler

    protected final ContentFileHandler handler

### printer

    protected final ContentPrinter printer

### filters

    protected final ContentFilter[] filters

Constructor Detail

### XMLReader

    public XMLReader()

Method Detail

### read

    public org.teleal.common.xhtml.XHTML read(CitationAnchor citation,
                                              Context context)

### appendContent

    protected void appendContent(org.teleal.common.xhtml.XHTMLElement parent,
                                 File file,
                                 CitationAnchor citation)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2010 Teleal GmbH, Switzerland. All Rights Reserved.