how to create xml file in ios ?

I am new i in xojo.
I need to create xml file from ios application.
I have tried with following code :

dim strXmlData as text
    strXmlData = "<?xml version=""1.0""?>"
    
     strXmlData = strXmlData +"<Orders>"
     strXmlData = strXmlData +"<order Lab=""Lab"" id ="""+rcPlaceOrder.Field("OrderNumber").getString+""">"
      strXmlData = strXmlData +"<created>"+created+"</created>"
      strXmlData = strXmlData +"</order>"
     strXmlData = strXmlData +"</Orders>
dim f as folderitem=SpecialFolder.Documents.Child("example.xml")
        Try
        //TextOutputStream.Create raises an IOException if it can't open the file for some reason.
          Dim t As TextOutputStream = TextOutputStream.Create(f)
          t.Write(ConvertEncoding(strXmlData, Encodings.UTF8))
          t = Nil
         
        Catch e As IOException
          //handle
       End Try

But when i tried to compile above code it gives me following error
Not enough arguments;missing xojo.io.Folderitem value for parameter ‘file’
Dim t As TextOutputStream = TextOutputStream.Create(f)

how to use textoutputstream in ios ?
What I required is how to create xml file from iOS .

Did you read: http://developer.xojo.com/userguide/xml

I do not have an iOS device, so my help is a minima.

developer.xojo.com list SpecialFolder as Classic. Is SpecialFolder available for iOS ?

[quote=298630:@Emile Schwarz]Did you read: http://developer.xojo.com/userguide/xml

I do not have an iOS device, so my help is a minima.

developer.xojo.com list SpecialFolder as Classic. Is SpecialFolder available for iOS ?[/quote]
XML is a plugin and not available for iOS either.

Now I understand Nikita’s code for creating an XML file :wink:

Thank you Greg for the information.

TextOutputStream takes two parameters, FolderItem and TextEncoding.

Dim t As TextOutputStream = TextOutputStream.Create(f, TextEncoding.UTF8)