Java XML Node Value Check isFiltered(Node node)

Here you can find the source of isFiltered(Node node)

Description

is Filtered

License

Open Source License

Declaration

private static boolean isFiltered(Node node) 

Method Source Code

//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");
    }
}

Related

  1. isElementType(Node _node)
  2. isEmpty(Node node)
  3. isEmptyTag(Node p_node)
  4. isEqual(Node a, Node b)
  5. isExpanded(Node node)
  6. isHidden(Node node)
  7. isIgnorable(Node n)
  8. isInclude(Node node)
  9. isInlineNode(@Nullable final Node aNode)