Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Related to question at:
- //http://groups.google.com/group/dotnetdevelopment/browse_thread/thread/c3f616038c234c2e
- var Q =
- from sticker in docUrunler.Elements("sticker")
- select new
- {
- id = sticker.Element("kategori").Attribute("id").Value,
- urun =
- from urun in sticker.Descendants("urun")
- select new
- {
- xid = urun.Attribute("id").Value,
- baslik = urun.Element("baslik").Value,
- teslimSuresi = urun.Element("teslim_suresi").Value,
- urunAciklamasi = urun.Element("urun_aciklamasi").Value,
- firsatUrunu = urun.Element("firsat_urunu").Value,
- ilkfoto = urun.Element("fotolar").Element("listeleme").Value,
- ikincifoto = urun.Element("fotolar").Element("detay").Value,
- ucuncufoto = urun.Element("fotolar").Element("desen").Value,
- renklerr =
- from renk in urun.Element("renkler").Elements("renk")
- select renk.Value,
- olculer =
- from olcu in urun.Element("olculer").Elements("olcu")
- select olcu.Value,
- fiyat = urun.Element("olculer").Element("olcu").Attribute("fiyat").Value
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment