xml sel --template --value-of "//foo/bar" \ --template --value-of "//baz[@name='Alice']" << EOF <foo> <bar>hello</bar> <baz name="Alice"> world</baz> </foo> EOF
http://xmlstar.sourceforge.net/docs.php
It also can edit with XPath which is really handy.
xml sel --template --value-of "//foo/bar" \ --template --value-of "//baz[@name='Alice']" << EOF <foo> <bar>hello</bar> <baz name="Alice"> world</baz> </foo> EOF
http://xmlstar.sourceforge.net/docs.php
It also can edit with XPath which is really handy.