13.07.2015 Views

Applied XML Programming for Microsoft .NET.pdf - Csbdu.in

Applied XML Programming for Microsoft .NET.pdf - Csbdu.in

Applied XML Programming for Microsoft .NET.pdf - Csbdu.in

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

persistence, resort to the DiffGram <strong>XML</strong> <strong>for</strong>mat. DiffGrams are the subject of Chapter10.In this chapter, we also exam<strong>in</strong>ed how ADO.<strong>NET</strong> objects <strong>in</strong>tegrate with the standard.<strong>NET</strong> Framework run-time serialization mechanism. DataSet and DataTable objectsalways expose themselves to data <strong>for</strong>matters as <strong>XML</strong> DiffGrams, thus result<strong>in</strong>g <strong>in</strong>larger output files. We looked at a technique <strong>for</strong> reduc<strong>in</strong>g the size of the serialized dataas much as 500 percent.In ADO.<strong>NET</strong>, the deserialization process is tightly coupled with the <strong>in</strong>ference eng<strong>in</strong>e,which basically attempts to algorithmically extract the layout of the <strong>XML</strong> stream. Whenload<strong>in</strong>g <strong>XML</strong> <strong>in</strong>to a DataSet object, the <strong>in</strong>ference eng<strong>in</strong>e is <strong>in</strong>volved more frequentlythan not. Because it is not a lightweight piece of code, you should always opt <strong>for</strong> a clearand effective read<strong>in</strong>g mode and use the <strong>in</strong>ference eng<strong>in</strong>e only when absolutelynecessary.As mentioned, <strong>in</strong> the next chapter we'll tackle a very special <strong>XML</strong> serialization <strong>for</strong>mat—the DiffGram. Among other th<strong>in</strong>gs, the DiffGram <strong>for</strong>mat is the <strong>for</strong>mat used to deliverDataSet objects to other plat<strong>for</strong>ms through Web services. It is also ideal <strong>for</strong> sett<strong>in</strong>g up<strong>in</strong>termittent applications—that is, applications that can work both connected to anddisconnected from the system.Further Read<strong>in</strong>gObject serialization and ADO.<strong>NET</strong> are the key topics of this chapter. You'll f<strong>in</strong>d a lot ofbooks out there cover<strong>in</strong>g ADO.<strong>NET</strong> from various perspectives. I recommend <strong>Microsoft</strong>ADO.<strong>NET</strong>, Core Reference, by David Sceppa (<strong>Microsoft</strong> Press, 2002).It's more difficult to locate a book that provides thorough coverage of objectserialization. Chapter 11 <strong>in</strong> <strong>Programm<strong>in</strong>g</strong> <strong>Microsoft</strong> Visual Basic .<strong>NET</strong>, Core Reference,by Francesco Balena (<strong>Microsoft</strong> Press, 2002), is an excellent and self-conta<strong>in</strong>edreference. If you want a shorter but complete overview, have a look at the follow<strong>in</strong>gonl<strong>in</strong>e article: http://msdn.microsoft.com/library/enus/dnadvnet/html/vbnet09252001.asp.360

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!