Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    /**
     * Removes a <root> tag from around the given xml string.
     * 
     * @param xmlWithRoot
     * @return
     */
    public static String removeRootTag(String xmlWithRoot) {
        return xmlWithRoot.substring(6, xmlWithRoot.length() - 7);
    }
}