using a c# class in javascript

hi, i've written this class in c#. how can i call the static method GetImageUrls from within unity javascript? what do i need to export/import/declare? where do i need to put stuff, so the compiler find XmlHelper? thanks, flexrails

using UnityEngine;
using System.Collections;
using System.Xml;

public class XmlHelper : MonoBehaviour {

    // Use this for initialization
    void Start () {
    }

    public static ArrayList GetImageUrls(string url) {
    	XmlTextReader reader = new XmlTextReader(url);
    	XmlDocument doc = new XmlDocument();
    	doc.Load(reader);

    	XmlNodeList images = doc.DocumentElement.GetElementsByTagName("image");

    	ArrayList urlList = new ArrayList();
    	foreach (XmlElement image in images) {
    		urlList.Add(image.Attributes["thumbnail"].InnerText);
    	}

    	return urlList;
    }
}

You need to put it in an earlier compilation pass. You can do this by creating a folder in your assets folder called "Plugins", and putting the script in there.

For more information, read this:

http://unity3d.com/support/documentation/ScriptReference/index.Script_compilation_28Advanced29.html