while(matcher.find())
{
if (matcher.group(1) != null && matcher.group(2) != null) {
AttributeItem newAttr;
attributeName = matcher.group(1).trim();
attributeValue = matcher.group(2).trim();
attributeValue = attributeValue.substring(1,attributeValue.length()-1);
newAttr = new AttributeItem(lineNum, offset + matcher.start(1), offset + matcher.end(1),
attributeName, attributeValue);
attributes.add(newAttr);
//System.out.println(attributeName + " = " +attributeValue);
}
else {