S
shapper
Hello,
I am trying to get the node "album" in a XML file given its "id"
attribute:
<gallery>
<album
id = "1"
title="Intro"
....
So in this case I would like to get the album with id = "1" under
gallery. I am using the following:ml"));
XDocument file = XDocument.Load(path);
XElement node =
file.Document.Element("gallery").Elements("album")
I just don't know how to select the album node with ID = "1".
How to do this?
Thanks,
Miguel
I am trying to get the node "album" in a XML file given its "id"
attribute:
<gallery>
<album
id = "1"
title="Intro"
....
So in this case I would like to get the album with id = "1" under
gallery. I am using the following:ml"));
XDocument file = XDocument.Load(path);
XElement node =
file.Document.Element("gallery").Elements("album")
I just don't know how to select the album node with ID = "1".
How to do this?
Thanks,
Miguel