How do I return a comma-separated list of the ids, please?
<nodes>
<node>
<id>1</id>
<name>idbread</name>
</node>
<node>
<id>2</id>
<name>idbutter</name>
</node>
</nodes>
expected output
1,2
I attempted to use XPath, but concat returns only the first value.
xpath node.xml "//nodes/node/id/text()" 2>/dev/null
returns
12