The results are the displayed in the text box.
Notice that because the XML document is untyped, the use of the Elements method is needed to specify
the element you??™re looking for. Because no mapping taking place, you have to physically specify the
element name.
Wouldn??™t it be nice to be able to use typed XML programming? Ah, yes, you can. First, open the
Orders.xml file and add the following highlighted namespace to it:
676
43659
709
5.70
6
...
349
Appendix C: LINQ to XSD
Next, highlight the entire XML tree and copy it to the Clipboard. Go back to your Visual Studio project,
and in the Solution Explorer window right-click the solution and select Add ??? New Item from the context
menu. In the Add New Item dialog, select XML File in the Templates section (see Figure C-4).
Figure C-4
For the purposes of this example, you can keep the name of XMLFile1.
Pages:
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541