Hello,
I'm trying to generate document from XML code.
I have already seen many of the community posts, I followed the same pattern to generate doc using xml code, but I'm getting an error, says that syntax error in template.
Please let me know what i have done wrong here.
ERROR:"Syntax error in template ""fr.opensagres.xdocreport.document.docx.DocxReport@6c1fb8c6!word/document.xml"" in line 4, column 4957:" & fn!char(10) & "Encountered ""name"", but was expecting one of these patterns:" & fn!char(10) & " "".""" & fn!char(10) & " ""..""" & fn!char(10) & " <DOT_DOT_LESS>" & fn!char(10) & " ""..*""" & fn!char(10) & " ""?""" & fn!char(10) & " ""??""" & fn!char(10) & " ""!""" & fn!char(10) & " ""[""" & fn!char(10) & " ""(""" & fn!char(10) & " ""}""" & fn!char(10) & " <TERMINATING_EXCLAM>"
Sharing XML code and template picture,XML Code:<info><Date>07/03/2025</Date><Policyholders_name>Ram</Policyholders_name><Policyholders_address1>XYZ House</Policyholders_address1><Policyholders_address2>Rose Lane</Policyholders_address2><Policyholders_city>Norwich</Policyholders_city><Postcode>NR1 1BZ</Postcode><Policyholder_name>Ram</Policyholder_name><Policyholder_date_of_birth>30-03-1991</Policyholder_date_of_birth><Partners_name>Sita</Partners_name><Partners_date_of_birth>07-08-1994</Partners_date_of_birth><Child1_name>Varun</Child1_name><Child1_date_of_birth>02-02-2019</Child1_date_of_birth><Child2_name>Kiran</Child2_name><Child2_date_of_birth>02-03-2022</Child2_date_of_birth><Child3_name>Rehman</Child3_name><Child3_date_of_birth>02-02-2019</Child3_date_of_birth><Child4_name>Ganesh</Child4_name><Child4_date_of_birth>02-02-2017</Child4_date_of_birth></info>
Discussion posts and replies are publicly visible
After multiple trail and errors have got it resolved. In the template, Attributes should be unique , otherwise it would start throw the error like above.