List of usage examples for org.w3c.dom.traversal NodeFilter interface-usage
From source file ItemSearcher.java
class FormattingNodeFilter implements NodeFilter { public short acceptNode(Node n) { if (n.getNodeType() == Node.TEXT_NODE) { Node parent = n.getParentNode(); if ((parent.getNodeName().equalsIgnoreCase("b")) || (parent.getNodeName().equalsIgnoreCase("i"))) {
From source file DomPrintUtil.java
/*******************************************************************************
* Copyright (c) 2008 IBM Corporation and Others
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html