Here is what I have. It clearly doesn't do what it supposed to and it even crashed. Is something wrong or is there any other tool that can help me parse XML in BASH?
:~$ cat test.xml
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.ant.freeform</type>
</project>
:~$ xmllint --xpath '//type/text()' test.xml
Segmentation fault (core dumped)
:~$ xmllint --xpath '//type' test.xml
XPath set is empty