[ASP / ASP.net] the simplest use of XML
XML Control:
Protected System.Web.UI.WebControls.Xml xmlList;
Bang for data sources:
=============================
XmlList.DocumentSource = "TestXml.xml";
XmlList.TransformSource = "TestXsl.xslt";
XmlList.DataBind ();
=============================
Like calling data, generate HTML documents.
=============================
XmlDocument doc = new XmlDocument ();
Doc.Load (Server.MapPath ( "TestXml.xml"));
XslTransform trans = new XslTransform ();
Trans.Load (Server.MapPath ( "TestXsl.xslt"));
XmlList.Document = doc;
XmlList.Transform = trans;
Trans.Transform (Server.MapPath ( "TestXml.xml"), Server.MapPath ( "TextHtml.html"));
=============================








0 Comments to “[ASP / ASP.net] the simplest use of XML”
No Comments. Send your comment.
Leave a Reply
You must be logged in to post a comment.