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

