Xml feed for unity scene

I am needing to create a news feed to read from a xml file from my website.

i need this feed to display as

Image Title Description Image Title Description etc.

anyone that can help me with this I will greatly appreciate it

Main Script:

using UnityEngine;
 
public class GetURL : MonoBehaviour {
 
    private bool loaded = false;
    private bool error = false;
    private XmlNewsFeedList feeds;
    
    //For scroll view
    Vector2 scrollPosition = Vector2.Zero;
    
    //Set the URL in the inspector....
    public string url;
    
    void Start () {
        WWW www = new WWW(url);
        StartCoroutine(WaitForRequest(www));
    }
 
    IEnumerator WaitForRequest(WWW www)
    {
        yield return www;
 
        // check for errors
        if (www.error == null)
        {
            Debug.Log("WWW Ok!: " + www.data);
            loaded = true;
            XmlSerializer xmlSerializer = new XmlSerializer(typeof(XmlNewsFeedList));
            feeds = (XmlNewsFeedList)xmlSerializer.Deserialize(stream);
            
        } else {
            Debug.Log("WWW Error: "+ www.error);
        }    
    }
    
    void OnGUI()
    {
        if(loaded)
        {
          //Do something with feeds
          displayFeed();
        }
        else if(error)
        {
          //Display Error Message.....
        }
        else
        {
          //Display Loading Message......
        }
    }
    
    void displayFeed()
    {
      scrollPosition = GUILayout.BeginScrollView(scrollPosition);
      foreach(XmlNewsFeed feed in feeds)
      {
        GUILayout.Label(feed.title);
        GUILayout.Label(feed.url);
        GUILayout.Label(feed.image);
        GUILayout.Label(feed.description);
      }
      GUILayout.EndScrollView();
    }
}

Deserialize the xml: This is super easy in C#.

First, create classes to represent the xml nodes:

Root “feeds” Node:

//filename: XmlNewsFeedList.cs
using System.Collections.Generic;
using System.Xml;
using System.Xml.Serialization;

namespace NewFeedXML
{
    [XmlRoot("feeds")]
    public class XmlNewsFeedList:List<XmlNewsFeed>
    {
    }
}

“feed” node:

//filename: XmlNewsFeed.cs
using System.Xml;
using System.Xml.Serialization;

namespace NewFeedXML
{
    [XmlType("feed")]
    public class XmlNewsFeed
    {
        [XmlAttribute("id")]
        public int id;
        public string title;
        public string url;
        public string image;
        public string description;
    }
}

then, once you have the a stream of the xml, you can use an XmlSerializer to Deserialize the XML.

//This is called by the script that loads the file off the web.
XmlSerializer xmlSerializer = new XmlSerializer(typeof(XmlNewsFeedList));
XmlNewsFeedList feeds = (XmlNewsFeedList)xmlSerializer.Deserialize(stream);

Then you can iterate through the list and do whatever you want to with each item:

            //This goes where you will process/display the feeds
            foreach(XmlNewsFeed feed in feeds)
            {
                //Do Something with feed
            }