Hi team,
I am new to the mustache and working around templating part for the JSON/XML format, I am able to work the JSON formatted string into mustache via the mustache factory and template.
How i can achieve this same thing with XML format is there any in-build support is provided which directly accept the XML and convert the things via template to the desired output ?
<response>
<result>
<invoice>
<status>2</status>
<deposit_percentage />
<create_date>2016-09-09</create_date>
<outstanding>
<amount>800.00</amount>
<code>USD</code>
</outstanding>
</invoice>
<result>
<response>
MustacheFactory mf = new DefaultMustacheFactory();
Mustache mustache = mf.compile("template.mustache");
mustache.execute(new PrintWriter(System.out), object).flush();
so in place of
object what kind of input i have to provide. I have searched across the multiple sites and documentation but no luck.
Can some one help me with this please.
Thanks!