I need help in processing XML from freeMarker. I am posting the XML to alfresco( Community version 2.9B) which is stored in the model and later accessed in FreeMarker. However I am getting the following error 'Expected hash freemarker.template.SimpleScalar'.js codevar xmlStr = args.xmlData;
var xmlDoc = new XML(xmlStr);
model.xmlDoc=xmlDoc.toString(); // tried with removing toString(), but the same error
template code$(xmlDoc.Member}
XML that is posted<Family><Member>John</Member></Family>
Error <message>Error during processing of the template 'Expected hash. xmlDoc evaluated instead to freemarker.template.SimpleScalar on line 1, column 3 in test.post.xml.ftl.'. Please contact your system administrator.</message>
<exception>org.alfresco.service.cmr.repository.TemplateException - Error during processing of the template 'Expected hash. xmlDoc evaluated instead to freemarker.template.SimpleScalar on line 1, column 3 in test.post.xml.ftl.'. Please contact your system administrator.</exception>
Pravin