edu.princeton.wordnet.ejb
Class DocumentFragmentParser

java.lang.Object
  extended by edu.princeton.wordnet.ejb.DocumentFragmentParser

public class DocumentFragmentParser
extends java.lang.Object

DOMFragmentParser build a document fragment from an XML fragment source that has not necessary a unique root element, or that may have text content around the root element(s).

The XML fragment mustn't contain DTD stuff : it must be a pure mix of XML tags and/or text. Entity resolution is thus irrelevant.

The fragment may begin with a text declaration.

Author:
Philippe Poulard

Constructor Summary
DocumentFragmentParser()
          Create a parser that parses XML fragments.
 
Method Summary
 org.w3c.dom.DocumentFragment parse(org.xml.sax.InputSource thatInput)
          Parse an input source.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentFragmentParser

public DocumentFragmentParser()
Create a parser that parses XML fragments.

Method Detail

parse

public org.w3c.dom.DocumentFragment parse(org.xml.sax.InputSource thatInput)
                                   throws org.xml.sax.SAXException,
                                          java.io.IOException
Parse an input source.

Parameters:
thatInput - the input to parse.
Returns:
document fragment
Throws:
org.xml.sax.SAXException
java.io.IOException