int count = 0;
try {
Parser parser = new Parser();
parser.setInputHTML(inputHTML);
parser.setEncoding("UTF-8");
NodeList nl = parser.parse(null);
NodeList trs = nl.extractAllNodesThatMatch(new TagNameFilter("tr"),true);
String regex = "([a-z]+) *= *\"?((?:(?! [a-z]+ *=|/? *>|\").)+)";
Pattern p = Pattern.compile(regex, Pattern.DOTALL);
for(int i=0;i<trs.size();i++) {
NodeList nodes = trs.elementAt(i).getChildren();
NodeList tds = nodes.extractAllNodesThatMatch(new TagNameFilter("td"),true);
for(int j=0;j<tds.size();j++) {
count++;
String content = tds.elementAt(j).toHtml();
Matcher fit = p.matcher(content);
if (fit.find()) {
String[] attributes = fit.group(2).replace("'", "").split(";");
Map<String,String> mapAtt = new HashMap<String, String>();
if(attributes.length > 1){