Hi =?Utf-8?B?RmVybW8gVmlnbmV0dGk=?=,
What i want is:
display in the document, near each tag or in the xml structure (task pane)
the attributes of each xml node. In this way the user can see all the
attributes, not only one at a time.
The attributes must be read-only.
The programming environment is VB.NET.
OK, my suggestion would be along these lines
- .NET opens the XML document
- using the XML tools provided by .NET, it processes the XML in the
document, pulling out the attributes
- write the attributes into the text, adjacent to the XML tags
- use Word 2003's new protection to lock down everything except the
ranges within the XML tags (assuming the user should be able to edit this
info). Roughly, that could go like this
For Each node In doc.Range.XMLNodes
If node.HasChildNodes = False Then
node.Range.Editors.Add wdEditorEveryone
End If
Next
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail
![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)