Prev | Current Page 61 | Next

Satheesh, N Kumar

"LINQ Quickly"

.."),
new XElement("Cholesterol", "50mg"),
new XElement("TotalCarbohydrates", "35g"),
new XElement("Protein","4g")
)
)
);
Here we have the XDocument object, IcecreamsDocument, which has a declaration,
comment, and processing instruction added to it. XElement is used for creating the
nodes of the XML document. The output for the above code will be
as follows:





Chocolate Fudge Icecream
cream, milk, sugar, corn syrup, cellulose gum, mono
and diglycerides...

50mg
35g
4g


LINQ to XML
[ 38 ]
LINQ to XML with Other
XML Technologies
When we talk about using XML, the first thing that comes to our mind is the XML
DOM. We use XML programming API of W3C Document Object Model (DOM).
XML programming means either traversing or manipulating data in the XML tree.


Pages:
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
Turcja 1 mimre.benton.pl Biuro księgowe Lublin Fundusze Emerytalne petrozawodzkich.waw.pl