Skip to main content

Posts

Showing posts with the label XML

XML Data and C#.Net Major Classes List

The XML Document Object Model:                    A W3C standard that allows random navigation, insertions and modification of XML. System.XML => System.XML.dll XMLDataDocument => System.Data.dll XMLDocment and XMLDataDocument : Both are in memory representation of the XML. XMLDataDocument inherits from XMLDocjument and it represents data in relational format and can be exposed to dataset as well. XMLDocument and XMLDataDocument provide the following methods : CreateNode , Clone (deep=true copy childs), GetElementByID (DTD defines an element as ID Type), GetElementsByTagName (return XMLNodeList), ImportNode(from other document), InsertBefore and InsertAfter ( immediately Before/After the referenced node. If node exists, preexistent is removed and newer is inserted, if no reference it is inserted at the end/Beginning of childs). Load (load from disk)...

Using ASO.NET and XML with ASP.NET (Primery Key, DataRow, RowState, DataTable, DataSet, Data Relations, Serialization to XML)

Major Connected and disconnected classes are:   When working with disconnected data use at least DataTable class. DataTable represents data in the form of Rows, Columns and constrains. Employee DataTable Creation:         Following constrains can be applied on the DataColumn: DataType(string,int), MaxLength(-1 no limit), Unique, and AllowDBNull. Creating Primary Keys: PK can be based on single or multiple columns like: employee.PrimaryKey = new DataColumn[] {empID}; Adding Data with DataRow:                                                 DataTable.Rows.Add method is used. DataRow is created by DataTable to conform to schema. DataTable.Rows.Add overload exists for array of objects. Da...