A method for determining the contents of a host response to a client query
by detecting patterns expected in the data displayed in the host
response, and outputting the data in the format of the detected pattern
to the client. The pattern may be expressed using extensible markup
language and regular expressions to form a compact and precise notation
for the pattern.