> Another point is the use of namespaces. Shouldn't SRW be the
> default namespace for the SearchRetrieveResponse tree and
> declared as such?
I'm not sure that I understand the question. Both using a named
namespace as in
<SRW:searchRetrieveResponse
xmlns:SRW="http://www.loc.gov/zing/srw/v1.0/"
xmlns:DIAG="http://www.loc.gov/zing/srw/v1.0/diagnostic/">
<SRW:numberOfRecords>2</SRW:numberOfRecords>
<SRW:resultSetId>8c527d60-c3b4-4cec-a1de-1ff80a5932df</SRW:resultSetId>
<SRW:resultSetIdleTime>600</SRW:resultSetIdleTime>
<SRW:records>
<SRW:record> etc.
and using a default namespace as in
<searchRetrieveResponse xmlns="http://www.loc.gov/zing/srw/v1.0/"
xmlns:DIAG="http://www.loc.gov/zing/srw/v1.0/diagnostic/">
<numberOfRecords>2</SRW:numberOfRecords>
<resultSetId>8c527d60-c3b4-4cec-a1de-1ff80a5932df</SRW:resultSetId>
<resultSetIdleTime>600</SRW:resultSetIdleTime>
<records>
<record> etc.
are valid ways of representing the response. Entirely up to you which
you use (a namespace aware parser would regard these as identical).
Matthew
|