tianchiing / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

XML data as context instead of Pojo #474

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I want to use Velocity and XML (or Json) data to set the context.

Do you have some example for that?
Something like "DocxXMLProjectWithVelocityList.java" or 
"DocxJsonProjectWithVelocityList.java".

Thanks!!!

Original issue reported on code.google.com by miguel.f...@gmail.com on 17 Apr 2015 at 4:03

GoogleCodeExporter commented 8 years ago
Your issue is not about XDocReport but with Velocity.

To be honnest with you, I have never played with XML & Velocity, but it seems 
that it uses JDOM and I find the syntax is a little complex to name a field.

Perhaps your need is to avoid using Pojo. To do that you can use Map. See 
https://code.google.com/p/xdocreport/wiki/DocxReportingJavaMainListFieldInTable

Next time please create your issue at 
https://github.com/opensagres/xdocreport/issues

Thanks!

Original comment by angelo.z...@gmail.com on 17 Apr 2015 at 2:01