我的要求是,An能够通过提供起始日期"和截止日期"(即我需要在网页中显示的两个日期节点之间)来获取日志文件信息 通过使用xslt文件. 谢谢 此致 Dayakar 解决方案 欢迎来到MSDN论坛.为什么不呢?使用LINQ to XML技术,例如以下示例:<Sales> <Sale> <Date>04/20/2010</Date> <Time>18:17:29</Time> <Id>P00000001</Id> <Name>Prod Name</Name> <Description>Prod Desc</Description> <Category>Prod Category</Category> <Subcategory>Prod Subcategory</Subcategory> <Size>Prod Size</Size> <Price>25</Price> <Image>image path</Image> </Sale> <Sales> Hi All,I have a requirement that, to display a log files inot like file name, creation date, physical path etc details which are saved in XML file as following<? xmlversion="1.0"encoding="utf-8" ?> < LogRoot>< LogElement>< UserId>CORP\vsanumalasetty</UserId>< CopiedFile>CacheApp.zip</CopiedFile>< SourcePath>\\172.220.255.52\TestSample\CacheApp.zip</SourcePath>< TargetPath>\\172.220.255.52\shared\StartSimulator\CacheApp.zip</TargetPath>< CopiedTime>12/12/2010 3:44:54 PM</CopiedTime></ LogElement>< LogElement>< UserId>CORP\vsanumalasetty</UserId>< CopiedFile>CacheApp.zip</CopiedFile>< SourcePath>\\172.220.255.52\TestSample\CacheApp.zip</SourcePath>< TargetPath>\\172.220.255.52\shared\StartSimulator\CacheApp.zip</TargetPath>< CopiedTime>11/12/2010 3:44:54 PM</CopiedTime></ LogElement>< LogElement>< UserId>CORP\vsanumalasetty</UserId>< CopiedFile>CacheApp.zip</CopiedFile>< SourcePath>\\172.220.255.52\TestSample\CacheApp.zip</SourcePath>< TargetPath>\\172.220.255.52\shared\StartSimulator\CacheApp.zip</TargetPath>< CopiedTime>10/12/2010 3:44:54 PM</CopiedTime></ LogElement></ LogRoot>My requirement is that, An can able to get the log file info by providing the From Date and To Date, i.e. between the two date nodes I need to display in webpage by using xslt file.Thanks in advanceRegards,Dayakar 解决方案 Welcome to the MSDN Forums.Why not?! use LINQ to XML technology, like following example:<Sales> <Sale> <Date>04/20/2010</Date> <Time>18:17:29</Time> <Id>P00000001</Id> <Name>Prod Name</Name> <Description>Prod Desc</Description> <Category>Prod Category</Category> <Subcategory>Prod Subcategory</Subcategory> <Size>Prod Size</Size> <Price>25</Price> <Image>image path</Image> </Sale> <Sales> 这篇关于我们可以将日期从C#代码传递到xslt文件以过滤xml数据吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-27 23:52