J
Justin
I am attempting to make a change to Word to make it a better XML editor and I
haven't been able to find the information that I need. Currently when a
schema is provided to word it pays no attention to the minimum and maximum
number of occurences for any element. What I would like to do is when an
element has been added to the XML if it has reached the maximum numbers of
occurences then I want to remove it from the child nodes list because adding
another will cause the file to be invalid according to the schema. The list I
am referring to is in the lower left corner of Word and it is part of the XML
structure pane. I believe an XML document must be open and a schema must be
attached for this list to be seen. I thought I could gain access to the list
using
the XMLChildNodeSuggestion object in VBA but I am not able to make this
work. I am wondering if anyone knows how I can add and remove items from this
list? Thank you in advance.
haven't been able to find the information that I need. Currently when a
schema is provided to word it pays no attention to the minimum and maximum
number of occurences for any element. What I would like to do is when an
element has been added to the XML if it has reached the maximum numbers of
occurences then I want to remove it from the child nodes list because adding
another will cause the file to be invalid according to the schema. The list I
am referring to is in the lower left corner of Word and it is part of the XML
structure pane. I believe an XML document must be open and a schema must be
attached for this list to be seen. I thought I could gain access to the list
using
the XMLChildNodeSuggestion object in VBA but I am not able to make this
work. I am wondering if anyone knows how I can add and remove items from this
list? Thank you in advance.