小编Chi*_*hin的帖子

XSLT格式日期

我有这种格式的约会

10/12/2011 12:55:00 PM (MM-DD-YYYY time)
Run Code Online (Sandbox Code Playgroud)

我想将这个日期格式化为

12/10/2011 (DD-MM-YYYY) time to be removed 
Run Code Online (Sandbox Code Playgroud)

使用XSLT?我发现的复杂性有时输入日期可能是这样的

7/12/2011 12:55:00 PM (only one number to the front instead of 07)
Run Code Online (Sandbox Code Playgroud)

有人可以告诉我一种实现方法吗?提前谢谢了.

xml xslt xpath string-formatting

5
推荐指数
1
解决办法
5141
查看次数

在.NET 2.0中将String读取为XML

我有一个string来自DB的.我想读这个XML.字符串如下所示

<settings>
  <setting name="OfferIDs" value="47,48,49,50,51,52,53,76,77,78,79" />
  <setting name="someothersetting" value="" />
  <setting name="anothersetting" value="" />
</settings>
Run Code Online (Sandbox Code Playgroud)

我想OfferIDs使用VB.NET 获取字符串的值.提前谢谢了.

xml vb.net .net-2.0

0
推荐指数
1
解决办法
9252
查看次数

标签 统计

xml ×2

.net-2.0 ×1

string-formatting ×1

vb.net ×1

xpath ×1

xslt ×1