Below is my XML File named myxmlfile1.xml.
Now if I pass "employee" with id=1 from my front end only those tags need to copied to another xml file like
The user wil not be knowing what child elements are there under employee id=1.
Using XPath, I am getting only the values like 1,aaa,25.I want to get the whole XML.
I am using asp.net with C#
Can any one tell me how to do this.
sri sriPosted May 6, 2008, 8:09 AM
Thank You for your reply.
I am getting only the values of the attributes in the nodes , say if i pass emp id =1 i am getting a string like 1 aaa $45 if I use Xpath. I want to get it as XML.
Please can you give me the code if possible.
Suhas ChitadePosted May 6, 2008, 6:35 AM
Hi,
If you are using XMLDocument object then you can use selectNodes method which will return you all the nodes inside the xpath mentioned.
Regards,
Suhas