Jump to content


Photo

Usar Xml.


  • Faça o login para participar
2 replies to this topic

#1 brunogodoi

brunogodoi

    Novato no fórum

  • Usuários
  • 5 posts
  • Sexo:Não informado
  • Localidade:Piraju / SP
  • Interesses:Mais conhecimento em ASP

Posted 19/02/2005, 08:38

Olá,

Gostaria de saber como seria o código para exibir o arquivo XML quando o mesmo tem a estrutura abaixo usando o ASP:


<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="0.91">

<channel>

<title> Titulo do Rss </title>
<link> http://blablabla.com.br </link>
<description>Rss do Bruno </description>
<language> pt-br </language>
<copyright> Direitos rservados </copyright>

<docs> documentos base </docs>
<webMaster> webmaster@blabla.com.br </webMaster>

<image>
<title> Online </title>
<url> http://teste.gif </url>
<link> http://blabla.com.br </link>
<width>88</width>
<height>31</height>
<description> rss legal </description>
</image>


<item>
<title>Teste 1</title>
<link> http://teste1.htm </link>
<description> teste de mensagem 1</description>
</item>


<item>
<title>Teste 2</title>
<link> http://teste2.htm </link>
<description> teste de mensagem 2</description>
</item>

.
.
.

</channel>
</rss>



Obrigado....

..:: Bruno Godoi ::..

http://www.brunogodoi.com


#2 Agente Linhares

Agente Linhares

    fuis...abraços!

  • Ex-Admins
  • 3138 posts
  • Sexo:Não informado
  • Localidade:Biritiba Mirim-SP

Posted 19/02/2005, 19:10

velho, da uma olhada nestes topicos:

http://forum.wmonlin...howtopic=104993
http://forum.wmonlin...howtopic=104926

http://forum.wmonlin...ic=104531&st=15


aqui um ex. legal do uso de asp+xml:

http://forum.wmonlin...c=106491&hl=xml
> Busca On-line - A Busca que faltava na Internet! - Cadastre-se!
---------------------------------------------------------------------------
> BRdesign.NET - Soluções em Websites e Sistemas E-Commerce.
---------------------------------------------------------------------------
> BR-ecommerce - Sua loja virtual na internet! - Apenas R$99,90 mensais (hospedagem inclusa)!

#3 explore

explore

    Novato no fórum

  • Usuários
  • 9 posts
  • Sexo:Não informado

Posted 19/02/2005, 19:31

Ta ai!!!!!!!

<%
set xmlDoc = server.createObject("MSXML2.DOMDocument")
xmlDoc.async = false
xmlDoc.load(Server.Mappath("teste.xml"))
response.write "<xmp>" & xmlDoc.xml & "</xmp>"
%>


Falo!
Programador Web Apolo Saturnino
Melhores Conhecimentos:
ASP & PHP & CGI & PERL
ACS & HTML & JS & VB
DHTML & JP & XML
----------------------------------------
Windows XP & Windows 2000
Windows 98 & Conectiva Linux 6
Conectiva Linux 8 & MC.OS
----------------------------------------
www.webscriptonline.kit.net
www.cartoondesign.kit.net




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq