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.

however, the verbosity of <strong>XML</strong> patently w<strong>in</strong>s over the compactness of b<strong>in</strong>ary data. As aresult, the size of the f<strong>in</strong>al stream is often unacceptably large. You must resort to trickssuch as the ghost class discussed <strong>in</strong> Chapter 9 to overcome this difficulty.As <strong>for</strong> the data <strong>for</strong>mat, you can choose between the stateless ADO.<strong>NET</strong> normal <strong>for</strong>m,the DiffGram <strong>for</strong>mat, and the DiffGram with a schema. In the first case, you take asnapshot of the current data, disregard<strong>in</strong>g orig<strong>in</strong>al values, ongo<strong>in</strong>g changes, andpend<strong>in</strong>g row errors. The DiffGram <strong>for</strong>mat is stateful and ma<strong>in</strong>ta<strong>in</strong>s a history of thechanges and pend<strong>in</strong>g errors. Un<strong>for</strong>tunately, the DiffGram <strong>for</strong>mat does not <strong>in</strong>cludeschema <strong>in</strong><strong>for</strong>mation. Schema <strong>in</strong><strong>for</strong>mation is fundamental <strong>for</strong> construct<strong>in</strong>g a DataSetobject from <strong>XML</strong> data. By us<strong>in</strong>g the <strong>XML</strong> serializer class, you obta<strong>in</strong> a new <strong>XML</strong> <strong>for</strong>mat<strong>in</strong> which schema and DiffGram data are grouped under a common umbrella.Incidentally, <strong>XML</strong> serializers are the topic of Chapter 11.Further Read<strong>in</strong>gIn my book Build<strong>in</strong>g Web Solutions with ASP.<strong>NET</strong> and ADO.<strong>NET</strong> (<strong>Microsoft</strong> Press,2002), I devoted Chapter 7 to disconnected applications and batch updates. In thatchapter, I discuss save-and-resume applications from the Web perspective. A widercoverage of disconnected ADO.<strong>NET</strong> can be found <strong>in</strong> Francesco Balena's <strong>Programm<strong>in</strong>g</strong>Visual Basic .<strong>NET</strong> (<strong>Microsoft</strong> Press, 2002) and David Sceppa's <strong>Microsoft</strong> ADO.<strong>NET</strong>Core Reference (<strong>Microsoft</strong> Press, 2002). Both books will more than get you started, sodecid<strong>in</strong>g which works better <strong>for</strong> you is more of a matter of personal preference. If youwant to focus on ADO.<strong>NET</strong>, go <strong>for</strong> Sceppa's book; if you want to look at ADO.<strong>NET</strong> as apart of the larger .<strong>NET</strong> Framework, pick up Balena's book.Data b<strong>in</strong>d<strong>in</strong>g is a key enhancement <strong>in</strong> the .<strong>NET</strong> Framework. Although based on ashared model such as ADO.<strong>NET</strong>, data b<strong>in</strong>d<strong>in</strong>g is implemented <strong>in</strong> radically differentways <strong>in</strong> W<strong>in</strong>dows Forms and Web Forms applications. Insights <strong>in</strong>to W<strong>in</strong>dows Formsdata b<strong>in</strong>d<strong>in</strong>g can be found <strong>in</strong> the follow<strong>in</strong>g <strong>Microsoft</strong> Developer Network (MSDN)articles: http://msdn.microsoft.com/library/en-us/dndive/html/data06132002.asp andhttp://msdn.microsoft.com/msdnmag/issues/02/02/cutt<strong>in</strong>g/cutt<strong>in</strong>g0202.asp.386

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

Saved successfully!

Ooh no, something went wrong!