Is it possible to delete the XML tag programmatically without deleting
the text within the tag?

Re: Remove XML Tag in Word by Cindy

Cindy
Wed Mar 08 11:21:40 CST 2006

Hi Jojo,

> Is it possible to delete the XML tag programmatically without deleting
> the text within the tag?
>
Recording a macro when right-clicking a tag in the XML Structure pane and
using the "remove tag" entry gives me:

Selection.XMLParentNode.Delete

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 :-)


Re: Remove XML Tag in Word by mifla17

mifla17
Mon Apr 03 01:06:34 CDT 2006


Cindy M -WordMVP- wrote:
> Hi Jojo,
>
> > Is it possible to delete the XML tag programmatically without deleting
> > the text within the tag?
> >
> Recording a macro when right-clicking a tag in the XML Structure pane and
> using the "remove tag" entry gives me:
>
> Selection.XMLParentNode.Delete
>
> 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 :-)