public static String getUnquotedValue(XmlAttributeValue value, XmlTag tag) { String unquotedValue = value.getValue(); if (tag instanceof HtmlTag) { unquotedValue = unquotedValue.toLowerCase(); } return unquotedValue; }