Prev | Current Page 62 | Next

Satheesh, N Kumar

"LINQ Quickly"


These are the only things that we normally do with an XML document. In case of
XML DOM, we follow the "bottom-up" approach of creating the XML document
using XmlDocument object first and then building the XML elements and attributes.
We do programming with elements and attributes. Coming up is an example of
creating an XML document using XML DOM, which is the standard way of doing it
using ADO.NET 2.0.
The following code creates an XML document Icecreams to store different varieties
of ice-creams as XML elements. Each ice-cream element contains many elements to
hold the properties of ice-cream. Each XML element is created separately and then
added to the main Icecream element as children. After adding all the properties as
elements, the main Icecream element itself is added to the document as an XML
element. Like this, we can keep on adding the elements to the document and build
the XML tree.
XmlDocument Icecreams = new XmlDocument();
XmlElement Name = Icecreams.CreateElement("Name");
Name.


Pages:
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
katalog stron dakolen życzenia ślubne kancelaria notarialna Warszawa katalog stron