Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Didattica in generale > Archivio > Elaborazione dei testi letterali > [ETL] Comandi di base
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Armen
Monty Python

User info:
Registered: Oct 2003
Posts: 488 (0.06 al dì)
Location: Tradate
Corso: Comunicazione Digitale
Anno: boh, boh, boh
Time Online: 4 Days, 5:24:24 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[ETL] Comandi di base

Spero che a qualcuno possa essere utile ;)

code:
//Apertura di una pagina in IE e dichiarazione della variabile doc //(document rappresenta la struttura principe di una pagina html) var http; var oIE = new ActiveXObject("InternetExplorer.Application"); oIE.Navigate(""); var doc = oIE.Document; //Richiesta di info su una determinata pagina html ("http://www.dsi.unimi.it"). //La risposta è inserita in doc. try { http = new ActiveXObject("Microsoft.XMLHTTP"); http.open("GET", "http://www.dsi.unimi.it", false); http.send(); doc.write(http.responseText); } catch (e) { WScript.echo("Errore: "+e.description); } //Dichiarazione oggetti xml var xmldoc = new ActiveXObject("Msxml2.DOMDocument"); xmldoc.async = false; xmldoc.validateOnParse = true; //Creazione e inserimento nel documento xml della Processing Instruction var objPI = xmldoc.createProcessingInstruction('xml','version="1.0"'); xmldoc.appendChild(objPI); //Creazione e inserimento nel documento xml della radice file xml var rootElement = xmldoc.createElement("Sito"); xmldoc.documentElement = rootElement; //Salvataggio del documento xml xmldoc.save("E_XercizioArmen.xml"); WScript.echo("Documento XML creato e salvato!");

__________________
My Blog...take a look!

"Never give out your password or credit card number in an instant message conversation."

ETL :schifo: Malcangi :schifo:

11-05-2005 09:02
Click Here to See the Profile for Armen Click Here to See the Blog of Armen Click here to Send Armen a Private Message Find more posts by Armen Add Armen to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 06:57.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.033 seconds (66.03% PHP - 33.97% MySQL) con 29 query.