Reverse merged 5.1.N (5.1.1)

119707 rmunteanu: Merged HEAD (5.1) to 5.1.N (5.1.1)
            119689 mward: ACE-4765: fixed "schema comparison tool" XML parsing bug.
            Element text content was being trimmed, in sax parser's characters(...) method - but this method may be called multiple times with chunked data (due to buffering) and trim should not be applied until after the entire text has been parsed for that element.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.1.N/root@119752 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Raluca Munteanu
2015-12-08 09:46:59 +00:00
parent 42863c8911
commit 5148eed78e

View File

@@ -286,7 +286,7 @@ public class XMLToSchema extends DefaultHandler
@Override
public void characters(char[] ch, int start, int length) throws SAXException
{
String text = new String(ch, start, length);
String text = new String(ch, start, length).trim();
if (text.length() > 0)
{
lastText.append(text);