Hi Expert Soul,
I'm sorry this taking some time.
I'm a newbie and doesn't have any background at all...thus i'm trying to learn it in a snail pace. In case you have more recommendation i'd surely appreciate it.
Main Topics
Browse All TopicsHi,
I was given a task to develop an web form application where one of its properties is to send an XML file to a different system. My scheme is to have a button in the form that once clicked it gets the data from SQL Server database and create an XML file out of this data and finally send it to destination server. I'm a newbie and doesnt' have any experience at all, is my idea feasible? If yes, can you provide sample code and at the same time some sites which i could read and learn from.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hello expert soul...after all this time...this is what i've come up and its working (but not yet what i desired)
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Using conn As New Data.SqlClient.SqlConnecti
Dim cmd As New Data.SqlClient.SqlCommand(
cmd.CommandType = Data.CommandType.StoredPro
conn.Open()
Dim da As New Data.SqlClient.SqlDataAdap
Dim ds As New Data.DataSet
da.Fill(ds)
Dim fileName As String = "C:\My_Transfer_" & Now.ToString("dd-MM-yyyy hh.mm.ss") & ".xml"
ds.WriteXml(fileName)
End Using
End Sub
BUT...i'm stucked with the XML file format which i don't like. Do you have any recommendation on how to format an XML output file? Or somewhere i could look up with?
Hello Cmedic_techs,
The original question was just an inquiry and not specific to written code which was pretty much answered by the links provided. While the last question i had is not pretty much part of the original question since this is about formatting which was raised separately on another question.
Cheers,
jsuanque
Business Accounts
Answer for Membership
by: expertsoulPosted on 2009-01-18 at 15:45:38ID: 23407187
here's what you can do:
1. Use dataadapter to Fill a DataSet. (LINK or try google for this one.)
2. Use DataSet's GetXml() method to get Xml String. LINK
Now you can either send this xml string accross or load it into a XMLDocument and send it. LINK