The following code gives me the xml output that I need from a sql server
table, but I've run into a minor problem..

 

How do you save it to a file called ff10591.xml ?

 

                qry = "SELECT svclatitude, svclongitude, svcrate + ' ' +
svcfirstname + ' ' + svclastname AS htmldesc, svcrate + ' ' + svclastname AS
labeldesc, 'enlisted' as titledesc from Roster WHERE svcBranch = 'NAVY' "

                Set oRS = oConn.Execute(qry)

 

                oRS.MoveFirst()

 

                response.write("<?xml version='1.0'
encoding='ISO-8859-1'?>")

                response.write("<markers>")

                while (not oRS.EOF)

                                response.write("<marker>")

                                response.write("lat=" & oRS("svclatitude") &
" ")

                                response.write("lng=" & oRS("svclongitude")
& " ")

                                response.write("html=" & oRS("htmldesc") & "
")

                                response.write("label=" & oRS("labeldesc") &
" ")                            

                                response.write("title=" & oRS("titledesc") &
" ")                                                               

                                oRS.MoveNext()

                wend

 

                oRS.close()

                oConn.close()

                response.write("</markers>")

 

Virgil Bierschwale

http://www.bierschwale.com

http://www.bierschwalesolutions.com

 



--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to