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 .