J
jp
Hi
XDocument.DOM.setProperty("SelectionNamespaces",
'xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2004-12-04T18:26:11"');
//First I try to find Chapter2 node
var strXPathFilter = "//my:Chapter[//my:ChapterTitle=\"Chapter2\"]";
oTrgChapter = XDocument.DOM.selectSingleNode(strXPathFilter);
//even Chapter2 is found, Chapter Description text is written to the first
Chapter Node, so Chapter2 is not actually selected???
oTrgChapter.selectSingleNode("my:ChapterDescription").text = "Default text"
What is going wrong?
Regards
JP
XDocument.DOM.setProperty("SelectionNamespaces",
'xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2004-12-04T18:26:11"');
//First I try to find Chapter2 node
var strXPathFilter = "//my:Chapter[//my:ChapterTitle=\"Chapter2\"]";
oTrgChapter = XDocument.DOM.selectSingleNode(strXPathFilter);
//even Chapter2 is found, Chapter Description text is written to the first
Chapter Node, so Chapter2 is not actually selected???
oTrgChapter.selectSingleNode("my:ChapterDescription").text = "Default text"
What is going wrong?
Regards
JP