I'm developing an application that queries MusicBrainz for data and I'm viewing it by binding the results to ListViews using some XPath.
Now, the underlying XML for the second (albums) ListView is here, and as you can see the top result has two artists:
<metadata created="2013-05-10T21:32:13.487Z">
<release-group-list count="153471" offset="0">
<release-group id="22315cdd-4ed9-427c-9492-560cf4afed58" type="Album" ext:score="100">
<title>The Heist</title>
<primary-type>Album</primary-type>
<artist-credit>
<name-credit joinphrase=" & ">
<artist id="b6d7ec94-830c-44dd-b699-ce66556b7e55">
<name>Macklemore</name>
<sort-name>Macklemore</sort-name>
</artist>
</name-credit>
<name-credit>
<artist id="c01560d1-6f69-48cf-a3c6-c94b65f099b1">
<name>Ryan Lewis</name>
<sort-name>Lewis, Ryan</sort-name>
</artist>
</name-credit>
</artist-credit>
but using this code
View.SetBinding(ListView.ItemsSourceProperty, new Binding()
{
Source = Resources["DataProvider"],
XPath = "//a:metadata/a:release-group-list/a:release-group"
});
GridView.Columns.Add(new GridViewColumn()
{
DisplayMemberBinding = new Binding() { XPath = "a:artist-credit/a:name-credit/a:artist/a:name" },
Header = "Artist",
Width = 128
});
I only get the first result and I have no idea how to go about concatenating them.
Any insight will be greatly appreciated.