echo para[@type="warning"] selects all para children of the context node that have a type attribute with value warning
../xgrep "/xgrep-test/para[@type='warning']" xgrep-test1.xml

