Link to home
Start Free TrialLog in
Avatar of regisit
regisit

asked on

Use same XML multiple times in Word Document

Do you know if there's a simple way to use the same XML elements multiple times in a Word document? Best illustrated with an example:

Say XML snippit is

<Release>
  <ReleaseNo>2.80</ReleaseNo>
  ....
</Release>

I take the XML and apply a transform to format the release information into a release document but I need to use the release number at various points throughout the resulting document. I had expected to be able to bookmark an XML element and then use that bookmark at other points on the doc, but bookmarking an XML element creates a reference the entire element, not the contents hence using the bookmark anywhere else invalidates the template document. For example, creating a bookmark to the <ReleaseNo> place-holder and then adding a cross-reference to it, cause Word to enter another <ReleaseNo> place holder elsewhere and this is out of context of the XML structure.

So is there a simple way to take say the value of the <ReleaseNo> element and store it in Word so it can be used/cross-referenced elsewhere?

Thanks

Avatar of Zlatin Zlatev
Zlatin Zlatev
Flag of Bulgaria image

Can you please give an example (ideally in an attached word document) as to how you are using the XML currently from your word document?
ASKER CERTIFIED SOLUTION
Avatar of regisit
regisit

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Fair enough. I was not requesting to release some confidential info, just trimmed down POC of what you are trying to achieve.
Also you have not mentioned content controls in your intial question, so I was kind of confused as to how you are refering to xmls from word.
Avatar of regisit
regisit

ASKER

?