예제 #1
0
 /** Characters. */
 public void characters(XMLString text, Augmentations augs) throws XNIException {
   if (fElementDepth <= fRemovalElementDepth && fNonElementDepth <= 0) {
     if (text.toString().trim().length() > 0) {
       super.characters(text, augs);
     }
   }
 }
예제 #2
0
 /** Start element. */
 public void startElement(QName element, XMLAttributes attributes, Augmentations augs)
     throws XNIException {
   if (fElementDepth <= fRemovalElementDepth && handleOpenTag(element, attributes)) {
     super.startElement(element, attributes, augs);
   }
   fElementDepth++;
 }
예제 #3
0
 /** End element. */
 public void endElement(QName element, Augmentations augs) throws XNIException {
   if (fElementDepth <= fRemovalElementDepth && elementAccepted(element.rawname)) {
     super.endElement(element, augs);
   }
   fElementDepth--;
   if (fElementDepth == fRemovalElementDepth) {
     fRemovalElementDepth = Integer.MAX_VALUE;
   }
 }