Why user XML ?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have developed some ASP.NET page as before, and use "DataReader" &
“DataSet" to retrieve data from MSSQL.

But I want to know why & when we will use "XML" & "XSL" to do the same job.
As I know XML is used by data transmission between different database
structures. If I need to transfer data with other counterparties, how to
build up my ASP.NET Page, and how to exchange the XML files with us?

Overall, I want to clearly know the logical of XML + ASP.NET. Thanks help!
 
Well, there's a lot to say to fully answer your question. You'll definitely
need to do some research on your own, but here are some key points:

XML is very useful when moving data (disparate or not) across the boundaries
of the Internet because it can represent data structures in a text based
form and the Internet is already set up for moving text back/forth (TCP/IP &
http).

Because XML is used to represent the data for transport purposes, there may
come a time when you want to query that XML and/or transform it into another
form (HTML for example). This is where XSL comes in.

As for .NET, data is intrinsically stored as XML. The ADO.NET "DataSet" is a
data storage mechanism that actually supports the data being internalized as
XML, so it is very easy to get data from a data source, store it in a
DataSet and then extract the XML itself from the DataSet for transport to
another place where that XML can be used to populate a new DataSet.

You may want to do some reading at: msdn.Microsoft.com/xml
 
Back
Top