Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import org.w3c.dom.*;

public class Main {
    public static boolean isTagOnly(Node node) {
        for (Node node1 = node.getFirstChild(); node1 != null; node1 = node1.getNextSibling()) {
            short word0 = node1.getNodeType();
            if (word0 == 4 || word0 == 3 || word0 == 7)
                return false;
        }

        return true;
    }
}