Android Utililty Methods XML String to Text Convert

List of utility methods to do XML String to Text Convert

Description

The list of methods to do XML String to Text Convert are organized into topic(s).

Method

MatchergetMatcherForXmlTags(String xml, String tag)
get Matcher For Xml Tags
String regexCode = "(?<=<" + tag + ">)(.*?)(?=</" + tag + ">)";
Matcher m = regexGetMatcherForPattern(xml, regexCode);
return m;
MatchergetMatcherWithSurroundingTags(String xml, String tag)
get Matcher With Surrounding Tags
String regexCode = "(<" + tag + ".*?>)(.*?)(</" + tag + ">)";
Matcher m = regexGetMatcherForPattern(xml, regexCode);
return m;
StringgetValueInsideXmlTags(String xml, String openTag, String closeTag)
get Value Inside Xml Tags
String regexCode = "(?<=" + openTag + ")(.*?)(?=" + closeTag + ")";
return regexExtract(xml, regexCode);
StringgetValueInsideXmlTags(String xml, String tag)
get Value Inside Xml Tags
return getValueInsideXmlTags(xml, "<" + tag + ">", "</" + tag + ">");
StringgetValueWithSurroundingTags(String xml, String tag)
get Value With Surrounding Tags
String regexCode = "(<" + tag + ".*?>)(.*?)(</" + tag + ">)";
return regexExtract(xml, regexCode);