load xml

Posted on 2008-11-12
Last Modified: 2013-11-12
I am using silverlight

i have an xml file and want to load it into a listbox in silverlight but nothing happens?

 <?xml version="1.0" encoding="utf-8" ?>
     <Title>Slide 1</Title>
     <Text>Slide 1 Description</Text>
      <Title>Slide 2</Title>
      <Text>Slide 2 Description</Text>

   Dim xmls As New XmlReaderSettings
        xmls.XmlResolver = New XmlXapResolver
        Dim reader As XmlReader = XmlReader.Create("x2.xml")


        While reader.Read
            If (reader.NodeType = XmlNodeType.Element) And (reader.Name = "slide") Then


            End If

            If (reader.NodeType = XmlNodeType.EndElement) And (reader.Name = "slides") Then
                Exit While
            End If
        End While
Question by:jagguy
    LVL 8

    Accepted Solution

    Check this examples to read correctly a XML file

    Author Comment

    i am using silverlight so i dont think this wil work

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    Suggested Solutions

    Title # Comments Views Activity
    Richtextbox formatting 8 18
    Javascript newbie 5 30
    Need help error handling a windows service 2 25
    Post a good COM tutorial 1 20
    A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now