/** * Check if two text strings match, ignoring leading and trailing spaces. * Any mismatch is printed immediately, with the supplied lead text. * * @param texta String to compare * @param textb String to compare * @param lead error text lead * @return <code>true</code> if the texts match, <code>false</code> if * not */ protected boolean matchText(String texta, String textb, String lead) { if (equalValues(texta, textb)) { return true; } else if (!m_schemaCompare && texta.trim().equals(textb.trim())) { return true; } else { printError(lead); if (m_differencePrint != null) { m_differencePrint.println(" \"" + texta + "\" (length " + texta.length() + " vs. \"" + textb + "\" (length " + textb.length() + ')'); } return false; } }
ns.equals(m_parserB.getAttributeNamespace(j))) { flags[j] = true; if (!equalValues(value, m_parserB.getAttributeValue(j))) { if (match) { printError("Attribute mismatch");