Working on XML with C# .net
#1

by
Group: BEGRP 26

[attachment=7523]


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
Popular Searches: c working with xml, working with xml in c, net xml parsing c, seminarproject on net working, socal net working seminar topics, net mvc xml result,

[-]
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
Brick XML Data Compression computer science crazy 2 2,377 07-10-2014, 09:26 PM
Last Post: seminar report asees
  XML encryption full report computer science technology 6 12,775 21-03-2014, 05:22 PM
Last Post: MichaelPn
  ADO.NET Application Development Technology computer girl 0 847 05-06-2012, 12:22 PM
Last Post: computer girl
  XML Encryption computer science crazy 1 2,154 06-03-2012, 10:26 AM
Last Post: seminar paper
  ANT HOC NET seminar projects crazy 2 3,368 13-02-2012, 12:30 PM
Last Post: seminar paper
  Seminar Report On XML for BIOINFORMATICS Computer Science Clay 1 6,172 04-02-2012, 02:34 PM
Last Post: seminar addict
  AXECHOP and TREECHOP for XML compression techniques project topics 0 827 22-07-2011, 03:09 PM
Last Post: project topics
  Building Blocks of .NET seminar class 0 1,425 25-03-2011, 09:52 AM
Last Post: seminar class
  dot .Net frame work project report helper 0 1,886 01-11-2010, 06:18 PM
Last Post: project report helper
  XML SECURITY IN THE NEXT GENERATION OPTICAL DISC CONTEXT seminar surveyer 1 1,098 04-10-2010, 09:59 AM
Last Post: seminar surveyer

Forum Jump: