打开XML如何将自定义数据添加到段落 [英] Open XML how to add custom data to a paragraph
本文介绍了打开XML如何将自定义数据添加到段落的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以通过openxml sdk将自定义属性添加到段落节点?
即:
< w:p myid ="1">
原因是我想在生成的文件中包含一些数据,以便以后可以导入它们并认识到文档的某些部分与数据之间的关系.
有人可以提供一些信息吗?
我找不到能满足我需要的东西.
谢谢,
Danny
Is there any way I can add a custom attribute to a paragraph node via the openxml sdk?
ie:
<w:p myid="1" >
The reason is that I would like to include some data in files I generate so that I can import them later and recognize how certain portions of the document relate to data.
Anybody have some information that can help?
I haven''t been able to find anything that will do what I need.
thanks,
Danny
推荐答案
检查以下链接,希望它对您有用-
使用自定义XML部件作为数据存储 [有关同一问题的msdn的讨论 [ ^ ]
check following links hope it will work for you--
Using Custom XML Part as a data store[^]
A discussion on msdn on same problem[^]
这篇关于打开XML如何将自定义数据添加到段落的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文