Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import org.w3c.dom.Comment;
import org.w3c.dom.Document;

public class Main {
    /**
     * Convenience function for creating comments.
     * 
     * @param document
     *            the DOM document we're creating the comment in
     * @param comment
     *            the comment text
     * @return a comment node
     */
    public static Comment createComment(Document doc, String comment) {
        return doc.createComment(comment);
    }
}