xml:
Código :
<?xml version="1.0" encoding="iso-8859-1"?> <;?xml-stylesheet type= "text/css" href="estilos.css"?>; <diseno> <titulo>Programa de Diseño Visual</titulo> <texto>esto es un ensayo</texto> <WEB URL="http://www.imdb.com/title/tt0103874/">imdb.com</WEB> </diseno>
mi css:
Código :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Untitled Document</title>
</head>
<body>
.titulo {
color: #C92725;
font-family: Georgia;
font-size: 18px;
font-weight:bold;
text-align:center;
display: inline;
}
.subtitulo {
color: #C92725;
font-family: Georgia;
font-size: 15px;
font-weight:normal;
text-align:left;
display: inline;
}
a:link {
color: #CCCCCC;
font-family: Georgia;
text-decoration:none;
font-size: 16px;
font-weight:bold;
text-align:left;
}
a:hover{
color: #C92725;
font-family: Georgia;
text-decoration: none;
font-size: 16px;
font-weight:bold;
text-align:left;
}
.contenido {
color: #000000;
font-family: Arial,Helvetica,sans-serif;
font-size: 14px;
font-weight:normal;
text-align:justify;
display: block;<br />
}
</body>
</html>y en flash:
Código :
_root.grande_mc;
var miXml:XML = new XML();
miXml.ignoreWhite = true;
miXml.onLoad = function(exito)
{
if (exito)
{
tit_txt = diseno.firstChild.childNodes[0].firstChild;
tit_txt = diseno.firstChild.childNodes[1].firstChild;
tit_txt = diseno.firstChild.childNodes[2].firstChild;
}
else
{
errorTXT.htmlText = "Error en la carga del texto";
}
}
obj_xml.load("diseno.xml");Debo estar cometiendo muchos errores, de esto me falta muuuuuucho por aprender, al que me pueda colaborar muchas gracias...
