Working on XML with C# .net
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
seminar surveyer
Active In SP
**

Posts: 3,541
Joined: Sep 2010
#1
22-12-2010, 02:25 PM


by
Group: BEGRP 26


.pptx   GC seminar.pptx (Size: 80.51 KB / Downloads: 52)


Introduction
Developed in 1996 by an XML Working Group

Set of tags are not fixed and can be extended

Maintain a structural relationship between them.

.NET Framework Library provides a good support to work with XML documents.

Introduction to Microsoft .NET XML Namespaces and Classes

.NET provides five namespace to support XML classes.

System.Xml
System.Xml.Schema
System.Xml.Serialization
System.Xml.XPath
System.Xml.Xsl

1) System.Xml

classes to read and write XML documents.

XmlReader
XmlTextReader
XmlValidatingReader
XmlNodeReader
XmlWriter
XmlTextWriter

2) System.Xml.Schema.
work with XML schemas
XmlSchema,
XmlSchemaAll, XmlSchemaXPath,
XmlSchemaType

3) System.Xml.Serialization
serialize objects into XML format documents or streams. 

4) System.Xml.Xpath
Contains classes :
XPathDocument,
XPathExression,
XPathNavigator, XPathNodeIterator.

5) System.Xml.Xsl
Classes to work with XSL/T transformations
XmlReader class
Abstract bases classes and contains methods and properties to read a document.
Contains methods to navigate through a document nodes.

MoveToFirstAttribute
MoveToContent
MoveToFirstContent
MoveToNextAttribute
While reading…
Steps:
XmlTextReader tr = new XmlTextReader(“<file_path>");

tr.Read();
tr.MoveToElement()
Tr.MoveToAttribute()

XmlWriter Class
To write to XML documents.

An abstract base class for
XmlTextWriter
XmlNodeWriter

And some properties…..
Writing a document
XmlTextWriter tw = new XmlTextWriter(“<file_path>", null)

tw.WriteStartDocument(); tw.WriteEndDocument(); tw.Close();  

Accessing a xml document
Methods to access properties of a class

Two classes,
XmlDocument
XmlDataDocument

Steps:
XmlDocument doc = new XmlDocument();
doc.Load(tr);
doc.Save();
Other methods to access a xml document
FileStream fs = new FileStream(path,FileMode.Open, FileAccess.Read, FileShare.ReadWrite);

1.File path
2.How to open it - this can be set to Open, Write, or OpenWrite
3. FileAccess type - how the file is opened - there are a few different argument for this one
4.How to share the file with other applications while open

Database connectivity
ADO.NET provides functionality to read a database and write its contents to the XML document using data providers and a DataSet object.

Conclusion
C # has a good collection of classes to access a xml document
Operations are performed in terms of nodes
Wide class range to provide database interface
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page

Quick Reply
Message
Type your reply to this message here.


Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  Calling a Web Service from an ASP.NET Web Page ppt study tips 1 543 19-10-2014, 11:24 PM
Last Post: LICjKYTCf
  XML encryption full report computer science technology 7 6,673 24-03-2014, 02:31 PM
Last Post: seminar project topic
  Information Theoretic Framework of Trust Modeling and Evaluation for Ad Hoc Net seminar projects maker 0 405 30-09-2013, 04:22 PM
Last Post: seminar projects maker
  Visual Basic .NET File IO Primer seminar projects maker 0 415 14-09-2013, 01:50 PM
Last Post: seminar projects maker
  Introduction to Visual Studio.NET ppt study tips 0 319 30-08-2013, 03:12 PM
Last Post: study tips
  NET Framework seminar tips 7 3,770 21-08-2013, 09:17 AM
Last Post: study tips
  Test & Evaluation/Science &Technology Net - Centric System Test ppt study tips 0 378 12-07-2013, 04:05 PM
Last Post: study tips
  Admission Control in UMTS - WLAN inter working system study tips 0 307 28-06-2013, 04:54 PM
Last Post: study tips
  SEMINAR REPORT ON ASP.NET study tips 0 368 14-06-2013, 03:20 PM
Last Post: study tips
  ADO.NET PPT study tips 0 194 06-06-2013, 04:14 PM
Last Post: study tips