<% set xml = Server.CreateObject("Microsoft.XMLHTTP")
xml.open "GET", "http://republicavirtual.com.br/web_cep.php?cep=29056220&formato=xml" & cat, false
xml.send
set objXML = xml.responseXML
set raiz = objXML.getElementsByTagName("webservicecep")
set resultado = objXML.getElementsByTagName("resultado")
set uf = objXML.getElementsByTagName("uf")
set cidade = objXML.getElementsByTagName("cidade")
set bairro = objXML.getElementsByTagName("bairro")
set tipo_logradouro = objXML.getElementsByTagName("tipo_logradouro")
set logradouro = objXML.getElementsByTagName("logradouro")
for i = 0 to raiz.length-1
response.Write(resultado.item(i).text&"<br>")
response.Write(uf.item(i).text&"<br>")
response.Write(cidade.item(i).text&"<br>")
response.Write(bairro.item(i).text&"<br>")
response.Write(tipo_logradouro.item(i).text&"<br>")
response.Write(logradouro.item(i).text&"<br>")
next
set xml = nothing
set objXML = nothing %>
Publicidade
|
|
Page 1 of 1
Ler XML de outro Servidor
#1
Posted 29 November 2011 - 08:27 AM
Share this topic:
Page 1 of 1
Similar Topics
| Topic | Forum | Started By | Stats | Last Post Info | |
|---|---|---|---|---|---|
|
Galeria de fotos - Thumb que chama imagem correta em XML
|
Flash & ActionScript |
Fox_Danger
|
|
|
|
Problemas com menus xml animados
|
Flash & ActionScript |
rdr
|
|
|
|
Filtro de busca meio cumplicado...
E ai galera blz... |
ASP |
samer
|
|
|
|
Chineses alertam para perigo de vírus "panda"
|
Notícias |
Notícias
|
|
|
|
busca só retorna vazio
flash e xml |
Flash & ActionScript |
Marvi
|
|
|
|
MySpace: garotas procuram amigos, garotos flertam
|
Notícias |
Notícias
|
|
|
|
Menu em XMl chamando arquivo swf externo
chamar arquivo swf externo por xml |
Flash & ActionScript |
leonardo Xavier
|
|
|
|
Socorro
xml undefined |
Flash & ActionScript |
Gisa Iagami
|
|
Publicidade
|
|

Help













