Android XML String Escape buildBuiltinXMLEntityMap()

Here you can find the source of buildBuiltinXMLEntityMap()

Description

build Builtin XML Entity Map

License

Open Source License

Declaration

private static Map<String, String> buildBuiltinXMLEntityMap() 

Method Source Code

//package com.java2s;

import java.util.HashMap;
import java.util.Map;

public class Main {
    private static Map<String, String> buildBuiltinXMLEntityMap() {
        Map<String, String> entities = new HashMap<String, String>(10);
        entities.put("lt", "<");
        entities.put("gt", ">");
        entities.put("amp", "&");
        entities.put("apos", "'");
        entities.put("quot", "\"");
        return entities;
    }/*from w w  w . java 2 s.c o m*/
}

Related

  1. encodeEntities(String content)
  2. encodeXML(final String str)
  3. XmlEscape(String value)
  4. xmlEscape(String source)
  5. appendPlainText(StringBuilder dest, String src)