Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    private static String decodeXML(String escapedXML) {
        String decodedXML = escapedXML;
        decodedXML = decodedXML.replaceAll("&lt;", "<");
        decodedXML = decodedXML.replaceAll("&gt;", ">");
        decodedXML = decodedXML.replaceAll("&quot;", "\"");
        decodedXML = decodedXML.replaceAll("&apos;", "'");
        decodedXML = decodedXML.replaceAll("&amp;", "&");
        return decodedXML;
    }
}