Skip to Main Content
XML and Related Technologies
book

XML and Related Technologies

by Atul kahate
May 2024
Beginner to intermediate content levelBeginner to intermediate
527 pages
17h 52m
English
Pearson India
Content preview from XML and Related Technologies
XML and ASP.NET • 401
The resulting output is shown in Figure 8.9.
Figure 8.9 Effect of using XmlWriter
8.4 EXTRACTING DATA FROM A DATABASE AS AN XML
DOCUMENT
In ASP.NET, we can retrieve data from a traditional RDBMS directly as an XML document! This is useful
in situations where we want to be able to read the contents of a table directly as an XML document, so that
we can send it to another application.
The code for doing this is shown in Figure 8.10.
<%@PageLanguage=”C#”%>
<%@ Import Namespace =”System.Data” %>
<%@ Import Namespace =”System.Data.SqlClient” %>
<%@ImportNamespace=”System.Conguration”%>
<%@ Import Namespace = “System.Data.OleDb” ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

XML Schema

XML Schema

Eric van der Vlist
XML in a Nutshell, 3rd Edition

XML in a Nutshell, 3rd Edition

Elliotte Rusty Harold, W. Scott Means
Beginning XML, 5th Edition

Beginning XML, 5th Edition

Danny Ayers, Liam R.E. Quin, Joe Fawcett

Publisher Resources

ISBN: 9781282652262