Get help. Give help. A Web Design and Development Community.

hi i want retrive data with image from xml file

  • # February 27, 2013 at 7:57 am

    Hi this is am using following code

    < ?xml version="1.0" encoding="utf-8"?>

    var query =from l in xmlDoc.Descendants(“Person”)
    select new Notch
    name = (string)l.Attribute(“name”),
    Detail = l.Element(“Details”)
    .Elements(“detail”).Select(x => x.Attribute(“games”).ToString()).ToList()
    Image = l.Element(“Details”)
    .Select(x => x.Attribute(“url”).ToString()).ToList()
    foreach (var category in query)

    NotchsList.ItemsSource = query.ToList();

    I using this code but i got output like







    # February 27, 2013 at 9:04 am

    Hi WPhone7!

    First off that is not valid XML. There are neither `event_image` nor `Peoples` closing tags. And one image tag has a `1` stuck at the end: ``.

    Secondly, I think you’re asking a c# question in forums that only has categories for php, css and javascript. You might get help from someone that knows c# over on [StackOverflow](

    I would help, but I have no clue.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

We have a pretty good* newsletter.