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 > [SADEGH] Info progetto
Pages (4): « 1 2 3 [4]   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
hanper
.simpatizzante.

User info:
Registered: Jan 2004
Posts: 16 (0.00 al dì)
Location: selva
Corso: com dig
Anno: 2
Time Online: 16:16:54 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

In prima linea grazie a chi mi ha dato qualche bel consiglio sterne, utzi...
cmq non indendevo perdere tempo per aiutare me. Intendevo che darmi qualche dritta non avrebbe fatto perdere tempo a nessuno.

Non riesco a farmi creare il file xml dal db. (sto testando il tutto con IIS giusto no ?)

Come prima cosa creo il collegamento al db
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open(Server.Mappath("dbxsadegh.mdb"))

poi creo recordset

poi la query, giusta?
Dim mySql
mysql= "Select Nome,Cognome from agenda"
conn.execute mySql

'Esegue la query
rs.open mysql, conn

'Move to the first record
rs.MoveFirst

poi
set act=objXMLdoc.Save Server.MapPath ("prova.xml")

e poi uso write line
act.WriteLine("<?xml version=""1.0""?>")
act.WriteLine("<agends>")

'Loop to output all the query results to the xml document
do while not rs.eof




act.WriteLine("<nome>" & rs("Nome") & "</nome>" )
act.WriteLine("<cognome>" & rs("Cognome") & "</cognome>" )

' move to the next record
rs.movenext
loop

' All non repetitive xml on bottom goes here
act.WriteLine("</agends>")


Quando faccio partire mi dice imposs. visualiz. pagina

20-04-2004 09:18
Click Here to See the Profile for hanper Click here to Send hanper a Private Message Find more posts by hanper Add hanper to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
UZI
free pain dispenser

User info:
Registered: Mar 2003
Posts: 2211 (0.26 al dì)
Location: monza - troppi fighetti
Corso: com. dig.
Anno: Dottor Morte
Time Online: 14 Days, 4:46:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Anch'io ho avuto questo problema ma non sono riuscito a risolverlo... a quanto pare non ci sono metodi DOM per editare l'assegnazione del docType. Su www.w3.org dicono così:

The DOM Level 2 doesn't support editing DocumentType nodes.

quindi mi son messo l'anima in pace e non ci ho più pensato.Se qualcuno c'è riuscito si faccia avanti!

__________________
those who test will find a bullet in they chest
put ta rest
by a brotha who was hopeless
grow up broke on tha rope of insanity
how many pistols smoking coming from a broken family

20-04-2004 09:23
Click Here to See the Profile for UZI Click Here to See the Blog of UZI Click here to Send UZI a Private Message Find more posts by UZI Add UZI to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
UZI
free pain dispenser

User info:
Registered: Mar 2003
Posts: 2211 (0.26 al dì)
Location: monza - troppi fighetti
Corso: com. dig.
Anno: Dottor Morte
Time Online: 14 Days, 4:46:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

HANPER:
set act=objXMLdoc.Save Server.MapPath ("prova.xml")

non ha molto senso, cancellala. devi creare innanzitutto un'oggetto di tipo DOMdocument e quindi assegnarla ad act con la seguente istruzione:

set act = Server.CreateObject("Microsoft.XMLDOM")

quello che hai fatto dopo dovrebbe essere giusto, anche se penso sia meglio usare i metodi DOM per creare i nodi...

Alla fine se vuoi visualizzare l'xml fai:
Response.Write(act)

se voui salvarlo:
act.Save Server.MapPath("act.xml")

__________________
those who test will find a bullet in they chest
put ta rest
by a brotha who was hopeless
grow up broke on tha rope of insanity
how many pistols smoking coming from a broken family

20-04-2004 09:58
Click Here to See the Profile for UZI Click Here to See the Blog of UZI Click here to Send UZI a Private Message Find more posts by UZI Add UZI to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
hanper
.simpatizzante.

User info:
Registered: Jan 2004
Posts: 16 (0.00 al dì)
Location: selva
Corso: com dig
Anno: 2
Time Online: 16:16:54 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Grazie. cmq non so quali metodi di dom usare. act.writeLine mi da errore. mi dite quali sono per piacere

20-04-2004 10:48
Click Here to See the Profile for hanper Click here to Send hanper a Private Message Find more posts by hanper Add hanper to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sterne
brufoloso

User info:
Registered: Nov 2002
Posts: 77 (0.01 al dì)
Location: Cassinetta
Corso: Comunicazione Digitale
Anno: 3 anno
Time Online: 4 Days, 7:52:09: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: problema dom e dichiarazione xml

Originally posted by pà&salam
ciao a tutti.. ringrazio intanto x' i precedenti post mi son stati di grandissimo aiuto x sbrogliare la matassa Etl!!
C'è un problema di cui si è parlato in precedenza ma di cui non ho capito la soluzione.... : ho creato un file xml tramite dom in asp...a parte ho creato la dtd.. ma non so come far apparire nel file xml la dichiarazione <?xml bla bla..?> ma soprattutto <!Doctype radice SYSTEM file.dtd>...:? ci sto sbattendo la testa tutto oggi mah.. :wall:
grazie in anticipo..


Ciao pà&salam(gran nome, mi piace moltissimo:D )
allora per la processing instruction <?xml bla bla...?> devi usare l'apposito metodo createProcessingInstruction
ti posto la mia versione in asp:

set PI=Dom.createProcessingInstruction("xml","version='1.0'")
Dom.appendchild(PI)

dove PI è una variabile vbscript e dom(che fantasia) è il nome dell'oggetto Microsoft.XMLDOM...spero che tu abbia capito.

Per quanto rigurda il problema della dichiarazione di Doctype non abbiamo trovato ancora come si possa fare(io per adesso ho semplicemente creato un commento che contiene quella riga,tanto per chiarire che ho fatto la dtd ma non so come attaccarla)...il problema di base è ce l'elemento doctype nelle specifiche Dom è di tipo readOnly e quindi può essere usato solo per ottenere la dtd e non per assegnarla; su internet ho visto che molti parlano di metodi alternativi non supportati dalle specifiche che dovrebbero risolvere questo problema ma sinceramente con il parser microsoft non funzionano...BOH:?
Ciao

P.S Domani ho l'appuntamento con sadegh nel misterioso laboratorio LAC al 3° piano del dsy....speriamo bene.

__________________
Esisteva una maniera di fregare il potente e si chiamava rock n' roll ma indovinate...oh no..il potente ha corrotto anche quello con una cosina di nome MTV
Jack Black --School of rock

20-04-2004 11:39
Click Here to See the Profile for sterne Click here to Send sterne a Private Message Find more posts by sterne Add sterne to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
hanper
.simpatizzante.

User info:
Registered: Jan 2004
Posts: 16 (0.00 al dì)
Location: selva
Corso: com dig
Anno: 2
Time Online: 16:16:54 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

questa istruzione é giusta per inserire il tag nome e con il valore prelevato dal mio db?
set newnode=act.createElement("nome")
set newtext=act.createTextNode(rs("Nome"))
newnode.appendChild(newtext)

facendo partire il file sad.asp il browser non mi da piú un´errore su di una linea peró
Tipo di errore:
Oggetto risposta, ASP 0185 (0x80020003)
Impossibile trovare una proprietà predefinita dell'oggetto.
/sad.asp

20-04-2004 12:42
Click Here to See the Profile for hanper Click here to Send hanper a Private Message Find more posts by hanper Add hanper to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
hanper
.simpatizzante.

User info:
Registered: Jan 2004
Posts: 16 (0.00 al dì)
Location: selva
Corso: com dig
Anno: 2
Time Online: 16:16:54 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ultimo problema risolto. ora finalmente mi viene creato il file xml con peró solo <?xml version="1.0"?> e mi dice
Per il documento XML è necessario specificare un elemento di primo livello

20-04-2004 12:51
Click Here to See the Profile for hanper Click here to Send hanper a Private Message Find more posts by hanper Add hanper to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
UZI
free pain dispenser

User info:
Registered: Mar 2003
Posts: 2211 (0.26 al dì)
Location: monza - troppi fighetti
Corso: com. dig.
Anno: Dottor Morte
Time Online: 14 Days, 4:46:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Dopo aver creato il nodo di primo livello (quello che contiene tutto) :
set primo_el = act.createElement("primo-tag")

e avere annidato i figli in modo corretto con il metodo:
primo_el.appendChild(nodo_figlio)

setti primo_el come nodo più alto con:
act.documentElement = primo_el

__________________
those who test will find a bullet in they chest
put ta rest
by a brotha who was hopeless
grow up broke on tha rope of insanity
how many pistols smoking coming from a broken family

20-04-2004 14:19
Click Here to See the Profile for UZI Click Here to See the Blog of UZI Click here to Send UZI a Private Message Find more posts by UZI Add UZI to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
sterne
brufoloso

User info:
Registered: Nov 2002
Posts: 77 (0.01 al dì)
Location: Cassinetta
Corso: Comunicazione Digitale
Anno: 3 anno
Time Online: 4 Days, 7:52:09: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Risultato

Ciao a tutti
risultato finale 30 evvai!:D :D
L'esame non è difficile perchè sadegh fa poche domande e dura poco...però è molto difficile fargli capire le cose: a me ha contestato il fatto che caricando il file asp non fosse possibile ottenere subito l'svg ma fosse necessario salvare l'xml e poi fare la conversione xslt con saxon...ho provato a spiegargli che facendo la conversione direttamente con asp non si riusciva ad ottenere l'svg ma solo le parti di testo...lui è rimasto della sua idea e ha provato a modificare il mio file asp per fare la conversione diretta...ma non si ricordava il codice per il caricamento dell'xsl :shock: e allora ha smesso e mi ha dato 30...BAH, va bene così.
Ciao a tutti

__________________
Esisteva una maniera di fregare il potente e si chiamava rock n' roll ma indovinate...oh no..il potente ha corrotto anche quello con una cosina di nome MTV
Jack Black --School of rock

21-04-2004 22:04
Click Here to See the Profile for sterne Click here to Send sterne a Private Message Find more posts by sterne Add sterne to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
UZI
free pain dispenser

User info:
Registered: Mar 2003
Posts: 2211 (0.26 al dì)
Location: monza - troppi fighetti
Corso: com. dig.
Anno: Dottor Morte
Time Online: 14 Days, 4:46:06: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

30, idem come sopra... confermo che l'esame non è difficile, a me non ha fatto domande che non riguardassero strettamente il progetto.

meno male, anche xchè ero del turno 1 e da non frequentante cominciavo ad avere segni di squilibrio (mi sogno l'ultraleggero di notte...)

__________________
those who test will find a bullet in they chest
put ta rest
by a brotha who was hopeless
grow up broke on tha rope of insanity
how many pistols smoking coming from a broken family

22-04-2004 11:38
Click Here to See the Profile for UZI Click Here to See the Blog of UZI Click here to Send UZI a Private Message Find more posts by UZI Add UZI to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Francesko
.illuminato.

User info:
Registered: Apr 2004
Posts: 216 (0.03 al dì)
Location: milano
Corso:
Anno: 3
Time Online: 4 Days, 20:34:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io ho preso un modesto 24... ma sono felice come una Pasqua!!!!!
vi spiego com'è andato l'esame:

io: salve prof, devo consegnare il progetto di com. scritta
sad: prego

gli dò il cd, lui lo inserisce.

4 minuti di silenzio assoluto, mentre lui guarda il progetto

sadegh: quanto ha preso nello scritto?
io: 19
sadegh: le va bene 24?
io: si si!!
sadegh: firmi qui.
io: ok! arrivederci!
sadegh: salve

C'è da dire che io non avevo fatto niente di pagine asp che caricavano dati da un database e li salvavano in xml.

WOOOOOOO!!!

(grazie sterne ed uzi)

23-04-2004 08:44
Click Here to See the Profile for Francesko Click here to Send Francesko a Private Message Find more posts by Francesko Add Francesko to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
joker402
dsy core staff

User info:
Registered: Nov 2002
Posts: 2429 (0.29 al dì)
Location: Milano
Corso: TICom
Anno: II+
Time Online: 49 Days, 14:29:03: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Abbiamo avuto modo di vedere che mediamente aumenta di 4 massimo 5 punti il voto del compitino.

Off-Topic:
Non dovevi subito dire "si si!", dovevi mostrarti dubbioso! :cool: magari rosicchiavi ancora di più! (o magari lo prendevi in quel posto :look: )

__________________
Ogni uomo mente, ma dategli una maschera e sarà sincero.
~ joker402 ~

23-04-2004 11:26
Click Here to See the Profile for joker402 Click here to Send joker402 a Private Message Find more posts by joker402 Add joker402 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 23:41.    Post New Thread    Post A Reply
Pages (4): « 1 2 3 [4]   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.067 seconds (63.07% PHP - 36.93% MySQL) con 25 query.