1
でLINQでXMLのクエリ?この場合、私は、「管理者」「ドキュメント」とは何種類ある次のXMLファイルを考えると属性
Dim authGroup As XElement = XElement.Parse(myXMLDoc.OuterXml)
Dim foundUser As IEnumerable(Of XElement) = From i In authGroup.Elements Where i.Attributes("name") = "admin" Select i
'How can I determine if the user was found?
Dim p As String = ...... (get the password from foundUser)
ように、その名前の属性を持つノードを見つけたいですか?子孫関数が見つかりません。 – WhiskerBiscuit
これはXMLリテラル(宣言なし)の 'XElement'として返されます。 –