com.icl.saxon

Class IDFilter


public class IDFilter
extends XMLFilterImpl

IDFilter is a SAX filter that extracts the subtree of a document rooted at the element with a given ID value. Namespace declarations outside this subtree are treated as if they were present on the identified element.

Constructor Summary

IDFilter(String id)

Method Summary

void
characters(char[] chars, int start, int len)
void
endElement(String localName, String uri, String qname)
void
endPrefixMapping(String prefix)
void
ignorableWhitespace(char[] chars, int start, int len)
void
processingInstruction(String name, String data)
void
startElement(String localName, String uri, String qname, Attributes atts)
void
startPrefixMapping(String prefix, String uri)

Constructor Details

IDFilter

public IDFilter(String id)

Method Details

characters

public void characters(char[] chars,
                       int start,
                       int len)
            throws SAXException


endElement

public void endElement(String localName,
                       String uri,
                       String qname)
            throws SAXException


endPrefixMapping

public void endPrefixMapping(String prefix)
            throws SAXException


ignorableWhitespace

public void ignorableWhitespace(char[] chars,
                                int start,
                                int len)
            throws SAXException


processingInstruction

public void processingInstruction(String name,
                                  String data)
            throws SAXException


startElement

public void startElement(String localName,
                         String uri,
                         String qname,
                         Attributes atts)
            throws SAXException


startPrefixMapping

public void startPrefixMapping(String prefix,
                               String uri)
            throws SAXException