Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import org.w3c.dom.Document;
import org.w3c.dom.Element;

public class Main {
    /**
     * Append a <code>fatalError</code> tag to the result xml document.
     * 
     * @param output
     *            the output w3c XML Document object
     */
    public static void fatalError(Document output, String note) {
        Element fatalError = output.createElement("fatalError");
        fatalError.setAttribute("note", note);
        output.appendChild(fatalError);
    }
}