
15/05/2008, 08:09
|
(Desactivado) | | Fecha de Ingreso: octubre-2003
Mensajes: 92
Antigüedad: 21 años, 4 meses Puntos: 0 | |
Re: Leer un XML desde una ubicación en Internet Puedes utilizar XmlTextReader que te permite leer archivos xml en local como en un servidor, incluso aunque sea devueltos el xml por un asp o php, llamando directamente al asp o php.
Imports system.xml
Private sub LeeXml(Byval Url as string)
dim etiqueta as string = ""
dim fin_etiqueta as string = ""
dim valor as string = ""
dim lee_xml as new xmltextreaer(url & "\Mi_Xml.xml")
do while lee_xml.read
select case lee_xml.nodetype
case XmlNodeType.Element
etiqueta = lee_xml.name
case XmlNodeType.Text
Valor = lee_xml.value
Case XmlNodeType.EndElement
fin_etiqueta = lee_xml.name
end select
loop
lee_xml.close
lee_xml = nothing
end sub
Bueno espero haberte ayudado.
Me gustaria que algun dia respondieran a mis preguntas tambien......
Última edición por tunait; 07/10/2008 a las 11:25 |