selectSingleNode doesn't select right node in filter?

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top