Group:  General ยป microsoft.public.office.xml
Thread: XMLAfterInsert Event and Child Nodes

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

XMLAfterInsert Event and Child Nodes
"Ignoramus" <oleg.krupnov[ at ]gmail.com> 12.09.2006 14:31:10
Is there a way to discriminate contexts of the arriving XMLAfterInsert
events between the case when an XML node is inserted together with some
content (e.g. by paste operation) from the case when the XML node only
wraps a portion of existing content (e.g. by apply XML tag operation)?

For XMLBeforeDelete event, one can discriminate those contexts by
analyzing the Range parameter, which is null when only the tag is
removed and the content stays. Is there a similar way for the
XMLAfterInsert event?

Because in Word's OM all XML events arrive out of my control, I can't
predict or account on whether the XMLAfterInsert event will be called
for the child nodes of the current node (first case) or only for the
current node (second case), whereas I need to know that to build my
data presentation views. Besides, because the event is fired after the
xml has already been inserted, I also can't analyze any saved ranges,
because they have changed as well.

Please advice. Thanks!

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net