Datas which was attributes and elements.
I can get with LINQ. But I got some questions.
Here is my Query.
XDocument docUrunler = XDocument.Load("C:\\duvarsticker.xml");
var Query = from i in
docUrunler.Elements("duvarsticker").Elements("kategori").Elements("urunler").Elements("urun")
from j in docUrunler.Elements("duvarsticker")
select new
{
id = j.Element("kategori").Attribute("id").Value,
xid = i.Attribute("id").Value,
baslik = i.Element("baslik").Value,
teslimSuresi = i.Element("teslim_suresi").Value,
urunAciklamasi = i.Element("urun_aciklamasi").Value,
firsatUrunu = i.Element("firsat_urunu").Value,
ilkfoto =
i.Element("fotolar").Element("listeleme").Value,
ikincifoto =
i.Element("fotolar").Element("detay").Value,
ucuncufoto =
i.Element("fotolar").Element("desen").Value,
renkler = i.Element("renkler").Value,
olculer =
i.Element("olculer").Element("olcu").Value,
fiyat =
i.Element("olculer").Element("olcu").Attribute("fiyat").Value
};
But in this query, I can get just one olculer and fiyatlar. If fiyat has 3
attributes I get just first one.
And in renkler element which means colors I can get all of them but like
this. blueblackbrownred
I need a , | - or something like that.(blue-black-brown)
How can I do this?
Kadir Avcı
Software Developer | Web Developer
web: www.kad1r.com
twt: www.twitter.com/kad1r
Sent from Izmir, 35, Turkey
On Sun, Jan 10, 2010 at 3:43 PM, Cerebrus <[email protected]> wrote:
> Which node represents "datas" in your parlance ?
>