I'm trying to set an attribute on a specific element.
The way I want to do this, is to iterate through the xml-elements and set the attribute.
What I got so fare is that I could use the code beneath to actually set the attribute:
var rng = ActiveDocument.Range;
rng.ContainerAttribute("numbering") = "on"
With this code it just set the first section elements attribute to "on". After some head-scratching here
I can't figure this out.
How do I apply this code to iterate through all the sections elements?
Or is there some other way to set this attribute?
I could set the attribute as default "on" in the DTD, but I want the value to be stored in the xml-file.