Topic
  • No replies
funkyspirit
funkyspirit
1 Post

Pinned topic XML mapping

‏2012-05-23T11:40:33Z |
Hello,

I have a Word document that is dynamically populated using XML.

The information is pulled from a database, processed by the XML document and then input in the word document.

In the Word document I have a field called txtPetitionerAddressLineService. The XML code to populate that field is

<fieldmap mergefield="txtPetitionerAddressLineService" type="Replace">
<resources source="petitioner" templateid="AddressLine"/>
<item id="0" value=""/>
</fieldmap>

I would like to assign a hard-coded string value to the value attribute of item, so that when the mapping is done, the field txtPetitionerAddressLineService in the word document reads that value. I tried to do it but it didn't work.

What would be the right way of doing this?

Thank you.