[ASPASP.NET] the simplest XML application

xiaoxiao2021-03-06  112

XML control:

Protected system.web.ui.webcontrols.xml xmllist;

Data source classes:

==============================

XMLList.Documentsource = "testXML.XML";

XMLList.TransFormSource = "Testxsl.xslt";

Xmllist.databind ();

==============================

Data object calls, generate an HTML file.

==============================

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");

==============================

转载请注明原文地址:https://www.9cbs.com/read-102619.html

New Post(0)