Java XML Unescape unescapeFromXML(String st)

Here you can find the source of unescapeFromXML(String st)

Description

unescape From XML

License

BSD License

Declaration

public static String unescapeFromXML(String st) 

Method Source Code

//package com.java2s;
/*// www .  ja  v  a  2 s  . c  o m
 * Copyright (c) 2008-2011 by Jan Stender, Bjoern Kolbeck,
 *               Zuse Institute Berlin
 *
 * Licensed under the BSD License, see LICENSE file for details.
 *
 */

public class Main {
    public static String unescapeFromXML(String st) {
        st = st.replace("&", "&");
        st = st.replace("'", "'");
        st = st.replace("&lt;", "<");
        st = st.replace("&gt;", ">");
        st = st.replace("&quot;", "\"");
        return st;
    }
}

Related

  1. unescapedKeyNameXml(final String name)
  2. unescapeForXML(String string)
  3. unescapeFromXml(String escapedString)
  4. unescapeFromXML(String string)
  5. unescapeFromXML(String string)
  6. unescapeFromXML(String string)
  7. unescapeFromXML(String string)