# generalzing the xpathexpression using variables

**URL:** <https://techcommunity.softwareag.com/t/generalzing-the-xpathexpression-using-variables/125121>\
**Category:** Feedback & ideas\
**Tags:** Discussions-on-this-Forum-System, New-User-Welcome-and-Introductions\
**Created:** [February 2, 2008, 5:38pm UTC](https://techcommunity.softwareag.com/t/generalzing-the-xpathexpression-using-variables/125121 "2008-02-02T17:38:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajasekharsiva](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@rajasekharsiva](https://techcommunity.softwareag.com/u/rajasekharsiva)\
**Post date:** [February 2, 2008, 5:38pm UTC](https://techcommunity.softwareag.com/t/generalzing-the-xpathexpression-using-variables/125121/1 "2008-02-02T17:38:53Z")

</div>

hi to all,

i am new to this forum and also new to xml too…

i have an xml query to selct alist of values…

XmlNodeList nl=doc.SelectNodes(“//group[@group\_name=‘Friends’]/@group\_name”)

it can select only the node having value as Friends

i want to generalise the query by substituting a variable in palce of ‘Friends’

how can i do …  
pls guide me
