devo creare un file xml con tanti elenchi quante sono le fabbriche.
Ho fatto cosi:
codice:
 QUERY CON ELENCO SUCCURSALI RS
 <% DO UNTIL RS.EOF   
  response.Write("<?xml version='1.0' encoding='UTF-8'?>")  
    response.ContentType = "text/xml" 
    response.Write(chr(13)&chr(10))
    response.Write("<stabilimento>")  
   response.Write(chr(13)&chr(10))
 response.Write("<elenco prg='"& NN &"'>") 
 response.Write(chr(13)&chr(10))
 response.Write("<codGenerale>A100</codGenerale>")   
 response.Write(chr(13)&chr(10))
 
' TROVO ELENCO OPERAI DELLE SUCCURSALI in base a RS("codice_fabbrica")
 DO UNTIL rsElenco
  response.Write("<dipendenti>")  
  response.Write(chr(13)&chr(10))
  response.Write("<matricola>" &rsElenco("matricola")&"</matricola>")         
  response.Write(chr(13)&chr(10))
  response.Write("<cognome>"&rselenco("cognome")&"</cognome>")  
   
 rsElenco.movenext
 loop  
  response.Write("</dipendenti>")  
  response.Write("</stabilimento>") 
  nn=nn+1
   
 rs.movenext
 loop
  
%>
il problema è che mi da questo errore:
[/CODE]