HAPを使用してプレフィックス付きのタグにアクセスしようとしていますが、以下は機能しません(何も返されません)。
HtmlAgilityPack.HtmlNodeCollection nodes = document.DocumentNode.SelectNodes("//*[name() ='sc:xslfile']");
HtmlAgilityPack.HtmlNodeCollection nodes = document.DocumentNode.SelectNodes("//*['sc:xslfile']");
何かご意見は?
編集:
HTMLは次のようになります。
<p>Men's Standings<br />
<sc:xslfile runat="server" datasource="/Global/Tables/1_01/9859_" id="WC_9859"></sc:xslfile>
<br /><br /><br />
Women's Standings
<br /><sc:xslfile runat="server" datasource="/Global/Tables/1_01/9860_" id="WC_9860"></sc:xslfile></p>
@Pat、私はstartsを試しましたが、それでもうまくいきません。
タグが空だからか?