Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problems writing XML
Message
From
10/11/2004 05:24:40
 
 
To
09/11/2004 07:54:00
Bill Benton
North Florida Software Services
Middleburg, Florida, United States
General information
Forum:
ASP.NET
Category:
XML
Miscellaneous
Thread ID:
00958201
Message ID:
00959903
Views:
9
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform