X document xpath 小發現

418 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
418
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

X document xpath 小發現

  1. 1. XDocument XPath 小發現 Howard 2013/12/6
  2. 2. 問題  條件   element name = n Id = ID1  目的:取得 attr 的值  XPath : r/n[@id='ID1']/@attr
  3. 3. XElement  已經取得 XElement ( id = ID1 ),也可直接下 XPath
  4. 4. References  http://msdn.microsoft.com/en-us/library/bb341675(v=vs.110).aspx

×