The local-name()
is just the bit after the colon, so instead of e.g. local-name()='S:Envelope'
try just local-name()='Envelope'
.
/*[local-name()='Envelope']/*[local-name()='Body']/*[local-name()='grtHgetRed']/*[local-name()='ResponseType']
Or you may want to consider an alternative tool such as xmlstarlet which has better support for this kind of thing.