Code example for ContentHandler

Methods: endDocument, endElement

0
			delegated_depth--;
			if(delegated_depth>0) {
				delegated.endElement(uri, localName, qName);
			} else { 
				if(delegated_root!=null)
					delegated.endElement("",delegated_root,delegated_root);
				delegated.endDocument();
			} 
			return; 
		} 
		// XXX should check skipped tags instead, to make it more robust to internal definitions 
		XSLTTag xslt=isXSLTTag(localName,new AttributesImpl());
		IncludeTag include=isIncludeTag(localName,new AttributesImpl());
		if(include!=null || xslt!=null || DEFINE_TAG.equals(localName))
			return; 
		up.endElement(uri, localName, qName);
	} 
	 
	public void characters(char[] ch, int start, int length) throws SAXException {
		if(delegated_depth>0)
			delegated.characters(ch,start,length);