Java tutorial
//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); } }