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. > Community > Tech > [xml] Problema xsl
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
klod
.primate.

User info:
Registered: Jul 2003
Posts: 65 (0.01 al dì)
Location: milano
Corso: informatica
Anno: ormai...
Time Online: 13:58:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
problema xml

Ciao a tutti!
Chiedo a voi se sapete aiutarmi.
ho creato una pagina xhtml con una form composta dai campi "utente", "mail" e "testo" , la form punta ad una pagina php che prendendo tramite POST i campi crea un albero XML per lo store dei dati e tramite foglio di stile xsl mi stampa la pagina col template del sito e il messaggio postato dall'utente.
Fin qui tutto ok..io però vorrei che un utente che visita il sito successivamente riesca a postare un messaggio che in automatico sia inserito nel file xml.
Problema: non riesco ad "appendere" il nuovo messaggio alla radice "root" del mio albero xml precendentemente salvato col comando

$xml->save("prova.xml");


Io provo a fare il load del file con
$xml->load("prova.xml");

ma al momento di fare l'appendChild su "root" del nuovo elemento mi si blocca tutto...

__________________
..:: disturbosi project ::..

Last edited by klod on 26-04-2005 at 18:00

26-04-2005 15:56
Click Here to See the Profile for klod Click here to Send klod a Private Message Visit klod's homepage! Find more posts by klod Add klod to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
0m4r
.grande:maestro.

User info:
Registered: Mar 2002
Posts: 7287 (0.84 al dì)
Location: Düsseldorf (DE)
Corso:
Anno: ESAMI FINITI
Time Online: 49 Days, 0:57:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

sono ignorante in materia, ma immagino tu abbia gia controllato lag vari ed eventuali errori nel codice...

__________________
http://www.twitter.com/0m4r

26-04-2005 17:31
Click Here to See the Profile for 0m4r Click Here to See the Blog of 0m4r Click here to Send 0m4r a Private Message Find more posts by 0m4r Add 0m4r to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ripe
- up in the mountains -

User info:
Registered: Jun 2002
Posts: 9469 (1.10 al dì)
Location: Cinisellooo
Corso: TICO TICO
Anno: Primo
Time Online: 61 Days, 2:33:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Mi dispiace di non poterti aiutare, ma non so nulla di php...

__________________
«And if you ever smell christian blood up in the mountains, then get your axe and chop them down!»

26-04-2005 17:35
Click Here to See the Profile for ripe Click Here to See the Blog of ripe Click here to Send ripe a Private Message Find more posts by ripe Add ripe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
klod
.primate.

User info:
Registered: Jul 2003
Posts: 65 (0.01 al dì)
Location: milano
Corso: informatica
Anno: ormai...
Time Online: 13:58:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Il codice "dovrebbe" essere giusto..la parte iniziale del messaggio fa quello che deve fare, la seconda parte in cui aggiunge fa tutto bene tranne l'append all'elemento root.
Ho testato commentanto l'append e sostituendolo l'istruzione e funziona (ovviamente non inserisce il 2ndo messaggio).
Il punto è che in tutti i manuali di XML che ho consultato c'è sempre la parte che dice "è possibile rimaneggiare-modificare-riprendere" i files XML ma nessuno dice come (a parte un bel notepad)...

....aspetto speranzoso in quale guru

__________________
..:: disturbosi project ::..

26-04-2005 17:59
Click Here to See the Profile for klod Click here to Send klod a Private Message Visit klod's homepage! Find more posts by klod Add klod to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 22:18.    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.049 seconds (53.14% PHP - 46.86% MySQL) con 25 query.