List of utility methods to do XML String Build
String | addCData(String xml) add C Data String cdataXml = "<![CDATA["; cdataXml += xml; cdataXml += "]]>"; return cdataXml; |
void | addElement(StringBuffer out, String tag) Add an empty tag to the StringBuffer out. out.append("<").append(tag).append("/>"); |
void | addElement(StringBuffer out, String tag, String content) Add a tag to the StringBuffer out. out.append("<").append(tag).append(">").append(content) .append("</").append(tag).append(">"); |
String | createCloseTag(String tagname) create Close Tag return "</" + tagname + ">"; |
String | createCloseTagNewLine(String tagname) create Close Tag New Line return "</" + tagname + ">\n"; |
String | createOpenTag(String tagname) create Open Tag return "<" + tagname + ">"; |
String | createOpenTagNewLine(String tagname) create Open Tag New Line return "<" + tagname + ">\n"; |
String | getXmlBetweenTag(String xml, String tag) get Xml Between Tag if (xml == null) { Log.e(TAG, "getXmlBetweenTag, params xml:" + xml + ", tag:" + tag); return ""; String ret = ""; String start = "<" + tag + ">"; String end = "</" + tag + ">"; ... |