malcolmcif / alfresco-bulk-export

Automatically exported from code.google.com/p/alfresco-bulk-export
0 stars 0 forks source link

Metadata in XML content 2 #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello, 

For the metadata with xml content, you may need to adjust the code in 
FileFolder class from this: 

private String formatProperty(String value){

    //format < and >
    value = value.replaceAll("<", "&lt;").replaceAll(">", "&gt;");
    //format &
    value = value.replaceAll("&", "&amp;");

    return value;
}

to this: 

private String formatProperty(String value){

    //format &
    value = value.replaceAll("&", "&amp;");
    //format < and >
    value = value.replaceAll("<", "&lt;").replaceAll(">", "&gt;");

    return value;
}

Because after you replace "<" to "&lt;", it will result in: "&amp;lt;" which is 
not desired. 

Original issue reported on code.google.com by erenbekce on 29 Mar 2012 at 11:07

GoogleCodeExporter commented 8 years ago
Thanks erenbekce,

     I will do it.

Original comment by gsde...@gmail.com on 30 Mar 2012 at 2:36

GoogleCodeExporter commented 8 years ago
This issue was done.

I will make dist package tomotow

Thanks.

Original comment by gsde...@gmail.com on 17 Sep 2012 at 8:18