XML 是这样的(DateCreated文档中只有一个节点):
<DateCreated>
<Year>2011</Year>
<Month>07</Month>
<Day>11</Day>
</DateCreated>
我需要的结果是这样的:
2011-07-11
我想我至少需要三个选择器DateCreated Year,DateCreated Month和DateCreated Day,这看起来很笨拙。我只是想知道是否有单行或更简单的方法来完成这样的任务。有人对此有想法吗?谢谢!