2012-09-24 25 views

回答

0

从理论上讲,你可以做这样的事情对两者的内容,您正在阅读:

<xsl:template match="img"> 
    <img alt="{@alt}" src="{@src}" /> 
</xsl:template> 

但我不知道你是否会查询内容将被解析的XML与否。

你也可以尝试用剃刀并带上html敏捷包:http://htmlagilitypack.codeplex.com/这可能会更容易一点。