Hi all,
Following is a sample code from my xml file.
<w:body>
<ns0:Mpi>
<ns0:User>
<ns0:Address1>
</ns0:Address1>
</ns0:User>
</ns0:Mpi>
</w:body>
I first need to reference the User node and I am able to achieve it using
the following line. When this line executes, I do have nodeListTable
variable referencing the User node.
XmlNodeList nodeListTable =
nodeDataset.SelectNodes("//ns0:User",coverLetterSectionTemplateMamespaceManag er);
But then I need to reference the Address1 node using the above nodeListTable
variable. I tried the following line
XmlNodeList nodeListField =
nodeListTable[0].SelectNodes("//ns0:*",coverLetterSectionTemplateMamespaceManager)
But after this line executes the nodeListField variable contains all nodes
in the ns0 namespace including Mpi and User nodes. So my question is how can
I select Address1 node from nodeListTable variable using SelectNodes
function?
Thanks in advance.