The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed