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 addParameter(Document outDoc, Element succFail, String name, String value) {
        //System.out.println("value:" + value);
        Element parameters = (Element) succFail.getElementsByTagName("parameters").item(0);
        Element parameter = outDoc.createElement(name);
        parameter.setAttribute("value", value);
        parameters.appendChild(parameter);
    }
}