.dsy:it.
Show 150 posts per page

.dsy:it. (http://www.dsy.it/forum/)
- Forum De Bell Tolls (http://www.dsy.it/forum/forumdisplay.php?forumid=7)
-- [.NET] Problema da risolvere! (http://www.dsy.it/forum/showthread.php?threadid=9887)


Posted by ripe on 30-03-2004 18:24:

[.NET] Problema da risolvere!

Sto usando la classe .NET XmlTextReader per leggere uno stream xhtml di una pagina remota. Il problema è che non appena il lettore incontra due "a capo" di fila si blocca pensando che quella sia la fine del file e ovviamente la validazione dell'xhtml fallisce. Probabilmente sto sbagliando qualcosa io, o mi sono dimenticato del codice qua e là... oppure c'è qualche altra soluzione???

Con le mie pagine funziona benissimo... ma questo problema me lo da anche con www.w3schools.com, e questo non è bello!

Grazieeeeee

:(

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


Posted by DeepBlue on 30-03-2004 18:37:

Premessa: non conosco .Net quindi parlo solo per quel poco che ho letto 2 minuti fa.

Perché fai terminare la lettura quando incontri 2 new line? Non puoi usare la proprietà XmlTextReader.EOF per far rilevare la fine del flusso?

__________________
~ get Debian! ~ get FreeBSD! ~ get OpenBSD! ~


Posted by ripe on 30-03-2004 18:43:

Non sono io a terminare la lettura... è l'oggetto XmlTextReader che genera l'evento EOF quando incontra due new line, ed è proprio questo che non riesco a capire! :?

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


Posted by ripe on 31-03-2004 15:22:

Nessun'altra idea?? :(

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


All times are GMT. The time now is 02:27.
Show all 4 posts from this thread on one page

Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.