Exemplo n.º 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);
     }
   }
 }
Exemplo n.º 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++;
 }
Exemplo n.º 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;
   }
 }