views:

15

answers:

0

Hello,

This issue occurs when you have your content control mapped to xml that doesnt have closing tag. For eg. if the xml is and is mapped to literal control than on mapping the text displayed on word document(enable editing or printing) with be something like this

Click here to enter text even if you have removed the text when you create the content control. But if i change xml to than it works fine and i dont see any default text.

So the problem is that i have around 50-60 fields in the object that is serialized using xml serializer than by default it serializes to . So for entire document all the empty xml tags have default text displayed in word document.

Is this a known issue or am i missing something on my end? Is there a way is tweak generated xml to explicitly have closing tag?

This is very easy to recreate. I am using xml sdk v 2.0 and word 2010.

Regards

Mac