Anyone knows how to programmatically toggle the XML Node in MS Word?

Anyone knows the Smart Document? I need to know the function call to toggle the XML Node in the document (display ot hide out).
LVL 1
chuang4630Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RafaelklCommented:
following is what you need in document:
from <<MS Office 2003 Smart Document SDK>>
Collections
SmartTags   The SmartTags property returns a SmartTags collection that includes all XML elements that have associated actions within your smart document.
Use Item(Index) to access a specific smart tag within a document, where Index can be either a 1-based integer that represents the position of the smart tag or XML element in the SmartTags collection or a specific XML element in "namespace#tagname" format.

The SmartTags property is a member of the Document object and Range object in Microsoft Office Word 2003, and the Worksheet object and Range object in Microsoft Office Excel 2003.

SmartTagActions   The SmartTagActions property returns a SmartTagActions collection that includes all smart document controls that are associated with a specified XML element (or SmartTag object).
Use Item(Index) to access a specific smart document control, where Index can be either a 1-based integer that represents the position of the control in the SmartTagActions collection or the name of the smart document control defined within the ISmartDocument ControlNameFromID property.

The SmartTagActions property is a member of the SmartTag object in both Word and Excel.

Note  If you delete or detach an XML expansion pack from a document in Excel, the SmartTags and SmartTagActions collections are not updated. Therefore, you may get a run-time error if you try to execute actions on a smart tag that doesn't exist.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
chuang4630Author Commented:
Thanks. I use office 2003, VS 2005 beta 2 and VSTO for VS 2005 beta 2. Does that work too?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.