Extract value of attribute node via XPath

//Parent[@id='1']/Children/child/@name 

Your original child[@name] means an element child which has an attribute name. You want child/@name.

Leave a Comment