---
title: "problem in using xpath"  
description: "problem in using xpath"  
author: "Jack C"  
published: 2010-11-09  
updated: 2010-11-26  
canonical: https://www.mindstick.com/forum/82/problem-in-using-xpath  
category: "xml"  
tags: ["xml"]  
reading_time: 1 minute  

---

# problem in using xpath

[problem](https://yourviews.mindstick.com/view/81399/tackling-the-problem-of-unemployment-during-corona-pandemic) in using [xpath](https://www.mindstick.com/interview/1702/define-xpath) to [access](https://www.mindstick.com/articles/12994/how-foreigners-can-access-blocked-websites-in-china) child [node](https://www.mindstick.com/forum/161418/what-is-node-js-and-how-does-it-work) \
how use it?\

## Replies

### Reply by Amit Singh

we acces the child node from xml data we use many method\
one is\
\
XmlDocument doc = new XmlDocument();\
doc.Load(Server.MapPath("doc.xml"));\
XmlNode target = doc.SelectSingleNode("/root/itemsA/item[@id='1']");\
string result = target.InnerText;\


---

Original Source: https://www.mindstick.com/forum/82/problem-in-using-xpath

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
