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 {
    public static void addSimpleOutput(Element success, Document outDoc, String tagName, String value) {
        Element output = (Element) success.getElementsByTagName("output").item(0);
        Element outItem = outDoc.createElement(tagName);
        outItem.setTextContent(value);
        output.appendChild(outItem);
    }
}