Here you can find the source of isFiltered(Node node)
private static boolean isFiltered(Node node)
//package com.java2s; /**/*w w w .j av a 2 s. com*/ * Copyright (c)2010-2011 Enterprise Website Content Management System(EWCMS), All rights reserved. * EWCMS PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * http://www.ewcms.com */ import org.w3c.dom.Node; public class Main { private static boolean isFiltered(Node node) { short type = node.getNodeType(); String name = node.getNodeName(); if (type == 8) return true; if (name.equals("SCRIPT")) return true; if (name.equals("LINK")) return true; if (name.equals("STYLE")) return true; return name.equals("OBJECT"); } }