//Parent[@id='1']/Children/child/@name
Your original child[@name]
means an element child
which has an attribute name
. You want child/@name
.
More Related Contents:
- How does XPath deal with XML namespaces?
- How to parse XML in Bash?
- XPath contains(text(),’some string’) doesn’t work when used with node with more than one Text subnode
- Getting attribute using XPath
- Current node vs. Context node in XSLT/XPath?
- XPath to select element based on childs child value
- how to ignore namespaces with XPath
- How to select following sibling/XML tag using XPath
- How to pass variable parameter into XPath expression?
- XPath to select multiple tags
- Using XPATH to search text containing
- XSLT: How to convert XML Node to String
- How to ignore namespace when selecting XML nodes with XPath
- How to find the max attribute from an XML document using Xpath 1.0
- Finding the difference between two dateTimes in XSLT
- What is the difference between // and .// in XPath?
- If double slash (//) is used 2 times in XPath, what does it mean?
- XSLT Replace function not found
- How do you identify duplicate values in a numerical sequence using XPath 2.0?
- Using XPath, How do I select a node based on its text content and value of an attribute?
- Concatenate multiple node values in xpath
- How to insert a new element under another with xmlstarlet?
- distinct in Xpath?
- How can I select an element with multiple classes with Xpath?
- What browsers support Xpath 2.0?
- XPath on an XML document with namespace
- What is the difference between name() and local-name()?
- XPath find all elements with specific child node
- How can I use xpath querying using R’s XML library?
- XSLT – Comparing preceding-sibling’s elements with current’s node element