Ciao,
non ho molto tempo per dedicarmi all'utilizzo dell'oggetto che
utilizzi ma se il file xml che devi creare è statico,potresti pensare
di usare un altro sistema per arrivare alla soluzione.
Potresti scrivere i tag xml ben annidati in una stringa e creare poi
una semplice funzione che,passata la stringa con i tag xml,crei il file
vero e proprio.
Esempio:
Dim strRigaXml as string
strRigaXml = "<f1>" & vbcrlf & _
"<f2>prova</f2>" & vbcrlf & _
" <l1>" & vbcrlf & _
"<f3>prova</f3>" & vbcrlf & _
" </l1>"" & vbcrlf & _
"</f1>"
Sub CreaXml(ByVal strRigaXml as string)
'Recupero il percorso fisico dell'applicazione.
Dim strPath as String = HostingEnvironment.ApplicationPhisicalPath()
'Creo il file XML.
My.Computer.FileSystem.WriteAllText(strPath & "/" & NOMEFILEXML, strRigaXml, false)
End Sub
Spero di esserti stata utile.
Ciao ciao
Barby