-2
我有一個輸入標籤,我想獲取該標籤內的值。我在C#中的Agilitypack的DocumentNode中嘗試了selectsinglenode(//input/@value)
和Attributes[]
和getAttributename
,但他們沒有工作。通過XPATH選擇輸入標籤的屬性值的內容
<input type=hidden" value="S1" name="code1" />
我想獲得此標記的S1值。