B
buzzi
Hi everybody
I've got this little problem that makes me sick!
I have a WordML file (managed through a SmartDoc application) and I
SIMPLY need to programatically insert a new xml element.
I easily move around the xml structure using DOM methods and Xpath
queries... but once I get to the desired Word.XMLNode I'm not able to
insert the new XML element WHERE I really want to.
I need to place it either just BEFORE or just AFTER the closing tag of
the selected element...
E.G.
"<myNode>... ... X</myNode>" --> "<myNode>... ... <newnode/></myNode>"
"<myNode>... ... </myNode>X" --> "<myNode>... ... </myNode><newnode/>"
(The node I want to add is valid according to the associated schema,
etc. etc. my problem is POSITIONING. I couldn't find something similar
to XmlDOM "insertAfter" method...)
Can anyone please help me?
Thanks in advance
Alberto
I've got this little problem that makes me sick!
I have a WordML file (managed through a SmartDoc application) and I
SIMPLY need to programatically insert a new xml element.
I easily move around the xml structure using DOM methods and Xpath
queries... but once I get to the desired Word.XMLNode I'm not able to
insert the new XML element WHERE I really want to.
I need to place it either just BEFORE or just AFTER the closing tag of
the selected element...
E.G.
"<myNode>... ... X</myNode>" --> "<myNode>... ... <newnode/></myNode>"
"<myNode>... ... </myNode>X" --> "<myNode>... ... </myNode><newnode/>"
(The node I want to add is valid according to the associated schema,
etc. etc. my problem is POSITIONING. I couldn't find something similar
to XmlDOM "insertAfter" method...)
Can anyone please help me?
Thanks in advance
Alberto