でのfirstChild値を返すにはどうすればよい、どのように私は、次のXMLのためのauthor要素の値を取得します:私はLINQを使用してLINQ
<?xml version="1.0" encoding="utf-8"?>
<quotes>
<category name="Sport">
<author>James Small
<quote>Quote One</quote>
<quote>Quote Two</quote>
</author>
</category>
<category name="Music">
<author>
Stephen Swann
<quote />
</author>
</category>
</quotes>
を私はLINQに新たなんだけど、私は
Dim quotesXMLList As IEnumerable(Of XElement) = From n In q.Descendants("category") _
Select n
For Each n In quotesXMLList
authorList.Add(n.Value)
Next
を試してみました
しかし、n.valueは、作成者とすべての子要素の値を返します。