c# - Parsing XSL file using htmlagilitypack or system.xml -


i have following part of xsl file:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/xsl/transform" version="1.0"> <xsl:output method="html" indent="yes" encoding="us-ascii" doctype-public="-//w3c//dtd html 4.01 transitional//en"/>  <!-- defined parameters (overrideable) --> <xsl:param name="showdata" select="'n'"/>  <!--other templates-->  <xsl:template name="pageheader"> <h1>load test results</h1> <table width="100%">     <tr>         <td align="left"/>         <td align="right">     </tr> </table> <hr size="1"/> </xsl:template>  <xsl:template name="testoptions"> <h2><a id="test_options">test options</a></h2> <table class="details" border="0" cellpadding="5" cellspacing="2" width="26%">     <tr valign="top">         <th align="left">id</th>         <th align="left">number of users</th>         <th align="left">rampup</th>         <th align="left">loop count</th>     </tr>     <tr>         <td id="role">#</td>         <td>13</td>         <td>14 s</td>         <td>15</td>     </tr> </table> <hr size="1"/> </xsl:template> </xsl:stylesheet> 

i want change values testoptions template second tr tag (13, 14, 15). how can using htmlagilitypack or system.xml?

so far have:

htmldocument doc = new htmldocument(); doc.load(@"c:\jmeter-results-detail.xsl"); var x = doc.documentnode.selectnodes(".//tr");  foreach(htmlnode link in  x) {     console.writeline(link.outerhtml); } 


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -