Java XML Unescape unescapeXML(String xml)

Here you can find the source of unescapeXML(String xml)

Description

unescape XML

License

Open Source License

Declaration

public static String unescapeXML(String xml) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String unescapeXML(String xml) {
        // TODO: this is incorrect and inefficient
        return xml.replace("&lt;", "<").replace("&gt;", ">").replace("&amp;", "&");
    }/*from   ww  w. ja  v  a2s .  com*/
}

Related

  1. unescapeXML(String text)
  2. unescapeXML(String text)
  3. unescapeXml(String value)
  4. unescapeXml(String value)
  5. unescapeXml(String xml)
  6. unescapeXmlChars(String source)
  7. unescapeXMLComment(String content)
  8. unescapeXMLEntities(String text)
  9. unescapeXMLEntity(String str)