Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems writing XML
Message
De
10/11/2004 05:24:40
 
 
À
09/11/2004 07:54:00
Bill Benton
North Florida Software Services
Middleburg, Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
XML
Divers
Thread ID:
00958201
Message ID:
00959903
Vues:
10
Hi,

... but I am having difficulty saving the XML to a specific file. I would like to save each file to it's corresponding "application number.XML".

Don't know where you get your 'application number from' but, as an example, does this help:
Dim AppNum as integer = 12345   'sample number

Dim w As New Xml.XmlTextWriter(AppNum.ToString.Trim + ".XML", Nothing)
w.WriteStartDocument()
w.WriteStartElement("salary")
w.WriteAttributeString("type", "annual")
w.WriteString("4500")
w.WriteEndElement()
w.WriteEndDocument()
w.Flush()
w.Close()
Regards,
Viv
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform