Adding our own elements to document.xml

D

David Thielen

We have to add our own tags to a file that we would like to have be
invisible (but that is not critical for our use). What does work is:

<w:p>
<w:r>
<w:t xml:space="preserve">Before </w:t>
</w:r>
<w:customXml w:element="firstName">
<w:customXmlPr>
<w:attr w:name="companyName" w:val='dave'/>
<w:attr w:name="companySymbol" w:val='thielen'/>
</w:customXmlPr>
</w:customXml>
<w:r>
....

But the customXml shows up. Is there a better way to do this?

thanks - dave

david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
C

Colbert Zhou [MSFT]

Hello Dave,

CustomXML is the way we add custom data in Open XML document. So it looks
good to me. Could you please elaborate the problem here. What do you mean
about "the customerXml show up" and how invisible we are trying to achieve.
Then, I will do some research to see if we can have better ways to achieve
the goal.


Best regards,
Ji Zhou
Microsoft Online Community Support
 
D

David Thielen

Hi;

We switched to using a ContentControl and that works perfectly for us.

thanks - dave


Hello Dave,

CustomXML is the way we add custom data in Open XML document. So it looks
good to me. Could you please elaborate the problem here. What do you mean
about "the customerXml show up" and how invisible we are trying to achieve.
Then, I will do some research to see if we can have better ways to achieve
the goal.


Best regards,
Ji Zhou
Microsoft Online Community Support


david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top