XML question

  • Thread starter Thread starter DBC User
  • Start date Start date
D

DBC User

Hi Sharpies,

I am doing a school project and I am little confused so please help me.
My project involves 5 classes and all the 5 classes has backend XML
data file associated with it. I would like to develop a class that does
nothing but opening, closing reading and writing XML data for all 5
classes. The question is (1) do I need to develop one like this or is
there a tool already available like enterprise blocks etc.?
(2) If at all I need to develop, what is the best approach.

Thanks.
 
XML can represent anything, from plain text to binary execution code, and
anything in between. How you read an XML file depends upon what is in it.
The System.Xml.XmlDocument class is a generic XML class that can read any
kind of XML document, but it is generic, and treats it just like it's XML,
not whatever it represents.

There are quite a few other classes as well. The main namespace for them is
System.Xml, but depending upon, again, what type of XML you're working with,
there are classes in other namespaces for parsing these other types of
specific documents. But here's a couple of good places to start:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemxml.asp
http://msdn.microsoft.com/XML/default.aspx

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Complex things are made up of
Lots of simple things.
 
That depends upon what you mean when you say "all the 5 classes has
backend XML data file associated with it". Do you mean that each class
reads / writes to a separate XML file that contains only information
for items of that class? Or do you mean that there is one XML document
that contains information for all 5 classes?
 
Back
Top