Unity iPhone System.XML does not work?

Hi, I was trying to use System.Xml in Unity iPhone 1.7 advanced and it does not seem to work.

The XML classes seemed to work in Unity Pro (in both mac and windows)

The following are the errors I am currently getting when it is used.

BCE0018: The name 'XmlWriterSettings' does not denote a valid type. Did you mean 'System.Xml.Serialization.XmlArrayAttribute' ?

var settings : XmlWriterSettings = new XmlWriterSettings();
settings.CloseOutput = true;
settings.Indent = true;
settings.IndentChars = ("	");

It would be great if someone can help.

As System.Xml is a pretty huge namespace, and IIRC, has some extra dependencies, you probably should not use that in a Unity iPhone project. Instead, you could like at lightweight XML-libraries.

One option might be looking into this thread of the Unity forums: Lightweight UnityScript XML parser