Page 1 of 1

Add a paragraph in a Placeholder location

PostPosted: Thu May 13, 2010 1:13 am
by ag_ram
Hello

Is there a way i can add a paragraph in a template at a specified location. I was able to unmarshall a para with some content added in there and i am trying to append that in a placeholder.

Code: Select all
           
            mappings.put("INTFCONTENT", paraFragment);
            Object obj = XmlUtils.unmarshallFromTemplate(xml, mappings);

paraFragment is my unmarshalled String . Unfortunately does not work.

I persume we cannot add <w:p> in <w:t> . What will be the workaround for this ?


Cheers
Ram