I am making a site out of xml because its faster than java script and HTML but it wont show up, it just has the script i wrote in colors.
could some one please help?
Page 1 of 1
Help With Xml
is there a way to make xml NOT show up as just colord script?
Tweet
#2
Posted 06 April 2008 - 09:41 PM
Faster in what sense?
Anyway, XML has no predefined presentation -- or much of anything else, for that matter -- so you need to provide style sheets if you want the document to be presentable, so to speak.
Anyway, XML has no predefined presentation -- or much of anything else, for that matter -- so you need to provide style sheets if you want the document to be presentable, so to speak.
#3
Posted 08 April 2008 - 10:39 AM
plus even with CSS do you not need something to read the xml file? like PHP, JAVA ect?
I use Ruby it seams fast, and it uses zero xml
also how do you get faster then strait HTML?
I use Ruby it seams fast, and it uses zero xml
also how do you get faster then strait HTML?
#4
Posted 08 April 2008 - 04:48 PM
#5
Posted 20 June 2008 - 02:50 AM
jcl, on Apr 8 2008, 04:48 PM, said:
C# CODE
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Text;
using System.Xml;
public partial class XmlOlustur : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
DataView XmlSag = personel_kontrol.Toplam_kayitlar("select * from User_Haber where HResim_Yer='2' and Haber_Durum='Evet'");
XmlTextWriter writer = new XmlTextWriter(Server.MapPath("bigsale1.xml"), System.Text.Encoding.UTF8);
writer.WriteStartDocument();
writer.WriteComment("The Program ");
writer.Formatting = Formatting.Indented;
writer.WriteStartElement("bigSale");
for (int FlasId = 0; FlasId < XmlSag.Count; FlasId++)
{
//writer.WriteElementString("image", null);
//writer.WriteAttributeString("picUrl", "Haber/" + XmlSag[FlasId]["DilID"].ToString() + "/Resimler/" + XmlSag[FlasId]["Haber_Resim"].ToString());
//writer.WriteAttributeString("linkUrl", "Yonlendir.aspx?ID=" + XmlSag[FlasId]["DilID"].ToString());
//writer.WriteAttributeString("title", XmlSag[FlasId]["Haber_Tarih"].ToString());
writer.WriteStartElement("image", null);
writer.WriteAttributeString("picUrl", "Haber/" + XmlSag[FlasId]["DilID"].ToString() + "/Resimler/" + XmlSag[FlasId]["Haber_Resim"].ToString());
writer.WriteAttributeString("linkUrl", "Yonlendir.aspx?ID=" + XmlSag[FlasId]["DilID"].ToString());
writer.WriteAttributeString("title", XmlSag[FlasId]["Haber_Tarih"].ToString());
writer.WriteEndElement();
}
writer.Flush();
writer.Close();
}
}
XML SAMPLE
<?xml version="1.0" encoding="utf-8"?><!--The Program -->
<bigSale>
<image picUrl="Haber/Tr/Resimler/img3.jpg" linkUrl="Yonlendir.aspx?ID=Tr" title="17.06.2008" />
<image picUrl="Haber/Tr/Resimler/img2.jpg" linkUrl="Yonlendir.aspx?ID=Tr" title="17.06.2008" />
</bigSale>
Page 1 of 1

Sign In »
Register Now!
Help

Back to top
MultiQuote