<html>
<head>
<title>Example Search Operation</title>
<script language='javascript'>
function doSearchReset()
{

var testData = '<request \n'
+'    xmlns="http://digir.net/schema/protocol/2003/1.0" \n'
+'    xmlns:xsd="http://www.w3.org/2001/XMLSchema" \n'
+'    xmlns:darwin="http://digir.net/schema/conceptual/darwin/2003/1.0" \n'
+'    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \n'
+'    xsi:schemaLocation="http://digir.net/schema/protocol/2003/1.0 http://digir.sourceforge.net/schema/protocol/2003/1.0/digir.xsd http://digir.net/schema/conceptual/darwin/2003/1.0 http://digir.sourceforge.net/schema/conceptual/darwin/2003/1.0/darwin2.xsd">\n'
+'	<header>\n'
+'            <version>1.0</version>\n'
+'            <sendTime>2003-03-09T19:14:58-05:00</sendTime>\n'
+'            <source>216.91.87.102</source>\n'
+'            <destination resource="test">http://localhost/DiGIR/DiGIR.php</destination>\n'
+'            <destination resource="test">http://localhost/DiGIR/DiGIR.php</destination>\n'
+'            <type>search</type>\n'
+'	</header>\n'
+'	<search>\n'
+'            <filter>\n'
+'                <like>\n'
+'                    <darwin:ScientificName>f%</darwin:ScientificName>\n'
+'                </like>\n'
+'            </filter>\n'
+'            <records limit="10" start="0">\n'
+'                <structure schemaLocation="http://digir.sourceforge.net/schema/conceptual/darwin/brief/2003/1.0/darwin2brief.xsd"/>\n'
+'            </records>\n'
+'            <count>true</count>\n'
+'	</search>\n'
+'</request>';

/*
    var testData = "<request \n"
+"    xmlns='http://digir.net/schema/protocol/2003/1.0' \n"
+"    xmlns:xsd='http://www.w3.org/2001/XMLSchema' >\n"
+"  <header>\n"
+"    <version>1.0.0</version>\n"
+"    <sendTime>20030421T170441.431Z</sendTime>\n"
+"    <source>127.0.0.1</source>\n"
+"    <destination resource='test'>http://localhost/digir/DiGIR.php</destination>\n"
+"    <type>search</type>\n"
+"  </header>\n"
+"  <search>\n"
+"    <filter xmlns:dwc='http://digir.net/schema/conceptual/darwin/2003/1.0' \n"
+"      <like>\n"
+"        <dwc:ScientificName>f%</dwc:ScientificName>\n"
+"      </like>\n"
+"    </filter>\n"
+"    <records start='0' limit='10'>\n"
+"      <structure schemaLocation='http://digir.sourceforge.net/schema/conceptual/darwin/brief/2003/1.0/darwin2brief.xsd' />\n"
+"    </records>\n"
+"    <count>false</count>\n"
+"  </search>\n"
+"</request>\n";*/
    document.forms.searchReq.doc.value = testData;
}
</script>

</head>
<body onload='doSearchReset()'>
<h1>Example Search Operation</h1>
<p>This is a static search request to the local DiGIR service. You can edit
the text to change the actual request submitted.  Pressing Reset will reload 
the default search request document.  <b>Note</b> that a real request 
should set the sendTime, source, and destination elements correctly or the 
request may be rejected by a provider.</p>
<pre>
resource = test
conceptual namespace = http://digir.net/schema/conceptual/darwin/2003/1.0 
filter = ScientificName LIKE 'f%'
</pre>
<form id='searchReq' action='../DiGIRm.php' method='GET'>
<textarea name='doc' id='doc' rows='18' cols='80'>
</textarea><br />
<input type='submit' value='Submit Request' />&nbsp;
<input type='button' value='Reset' onclick='doInvReset()' />
</form>
</body>
</html>