Tricia<br>
<br>
We have just finished implementing a system like this to get CGI
version talking with .NET - simple but very powerful especially with
the template replacement options introduced in v4 for the CGI URL
parameters.<br><br>
In essence we take the output into a XML template that is built in a
fashion to hold all possible output parameters from each execution of
the CGI (mode=browse) - this is at my office (it is mdnight here in the
UK) but I will try to remember to send to you tomorrow.  We simply
load this in .NET and and have an 'state' variable holding this between
execution.<br>
<br>
With mode=query (or nquery) we build XML templates per layer. 
These are then streamed back from an execution and then are loaded into
a .NET datatable - we can then easily manipulate, sort, delete records
etc.  The format we've used is as follows:<br>
<br>
<row><br>
  <fieldname1>[fieldname1]</fieldname1><br>
  <fieldname2>[fieldname2]</fieldname2><br>
  <fieldname3>[fieldname3]</fieldname3><br>
</row><br>
<br>
When MapServer parses this file it replaces the [fieldname1] values with the attribute information.<br>
<br>
There may be a few on the list who wonder why we have gone about it
this way.  We have an existing .NET web application that runs on
large vendor software and needed to look at addressing some needs for
our customers who need more flexible environment.  We didn't opt
for MapScript in c# at present as we investigated and it appeared to
have some memory issues.  The great thing with MapServer CGI is
that it is totally stateless, executes in fractions of a second (we
access over 1 GB of MapInfo files with no problem) and in some cases is
actually faster than the vendor software.<br>
<br>
If anyone wants any further information or ode then just let us know<br>
<br>
Cheers<br>
mike<br>
<br><div><span class="gmail_quote">On 03/11/05, <b class="gmail_sendername">Tricia Williams</b> <<a href="mailto:pgwillia@student.cs.uwaterloo.ca">pgwillia@student.cs.uwaterloo.ca</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi List,<br><br>   I was wondering if it is possible to use an xml template instead of a<br>html template to handle nquery results?  I have tried experimenting but<br>the results are not recognized as xml.<br><br>   My header contains:
<br><br><?xml version="1.0" encoding="UTF-8"?><br><result><br><br>   My template contains:<br><br><place><br>  ...<br></place><br><br>   My footer contains:<br><br></results>
<br><br>   Any advice or guidance would be much appreciated.<br><br>Cheers,<br>Tricia<br></blockquote></div><br>