ITextRegionList list = curNode.getRegions();
String text = curNode.getText();
String tagName = null;
String attrName = null;
for(int j=0;j<list.size();j++){
ITextRegion region = list.get(j);
if(region.getType()==DOMRegionContext.XML_TAG_NAME){
tagName = text.substring(region.getStart(), region.getEnd()).trim();
} else if(region.getType()==DOMRegionContext.XML_TAG_ATTRIBUTE_NAME){
attrName = text.substring(region.getStart(), region.getEnd()).trim();
} else if(region.getType()==DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE){
String attrValue = text.substring(region.getStart(), region.getEnd()).trim();
int length = attrValue.length();
attrValue = attrValue.replaceAll("^\"|\"$","");
if(tagName!=null && attrName!=null){
validateAttributeValue(file, tagName, attrName, attrValue,
curNode.getStart() + region.getStart(), length);
}
attrName = null;
}
}
}