![](/img/trans.png)
[英]XPath/HtmlAgilityPack: How to find an element (a) with a specific value for an attribute (href) and find adjacent table columns?
[英]xpath query to find the root element attribute value
大多數時候我試圖自己編寫xpath查詢並且一直都失敗:(。我再次陷入問題找到價值
這是我的xml
<Tail xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Id="45000061" CreateDateTime="2010-03-08T16:02:52.512+11:00" Type="Actual" Sender="DRNA" Receiver="Lawson">
我試圖在我的根節點中找到“ID”值(假設為“45000061”)
請幫忙。
提前致謝
xpath表達式/Tail/@Id
可以獲得Id
屬性值。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.