Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String createRequestResponseXML(String resCode, String resDesc) {
        StringBuffer xmlContent = new StringBuffer(
                "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\" ?><Root><ServCont><Response>");
        xmlContent.append("<Result>").append(resCode).append("</Result>");
        xmlContent.append("<Description>").append(resDesc).append("</Description>");
        xmlContent.append("</Response></ServCont></Root>");
        return xmlContent.toString();
    }
}