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 createXmlResponse(String status, String desription) {
        StringBuffer response = new StringBuffer(
                "<?xml version=\"1.0\" encoding=\"UTF-8\"?><response><responseCode>");
        response.append(status).append("</responseCode><responseInfo>").append(desription)
                .append("</responseInfo></response>");
        return response.toString();
    }
}