The C# language, pronounced see sharp, is an excellent way to work with 
Java and was in fact developed by Microsoft as part of Microsoft’s .NET 
project. C# has a beautifully rich .NET library and also employs XML as its 
primary technology.

Through this short article I am going to have a general discussion of C# 
and XML processors, with a limited overview of DOM tree and XML streams.


*Overview Of XML Processors*

The idea of processing, within the situation of an XML document or file, 
essentially implies to extract or pull out certain details from your file. 
Once pulled, this information is usually employed to develop another XML 
file or even an HTML file (known as the output), this process is commonly 
called a transformation. Hence an xml file can be processed to output an 
xml or html transformation.

The exact processor which you decide upon for this job is solely up to, 
nevertheless, you must be aware that certainly not all processors are 
matched and your choice is very important, the wrong choice may effect 
badly on your whole project.

Internet browsers such as Microsoft Internet Explorer and Firefox, have 
in-built XML processors and might be employed to process XML files, however 
they are really much harder to employ since you need to give them 
processing directions through an XSLT document, specifically for the really 
complex jobs.

An even more demanding choice is to use C# and Java to compose your own 
processor, however this really is time consuming and you will need to use 
the Java or .NET class libraries.

The easiest option is to employ a readymade XML processor, they come in a 
variety of options from freeware just like Syntext Serna to very reliable, 
feature rich commercial grade XML processors like Liquid XML 
Studio<http://www.liquid-technologies.com/xml-editor.aspx>
.


*Processing XML Documents*

You could use either of two methods to process your XML file termed offline 
processing and online processing. Offline usually means you don't need to 
to be connected with your XML source file directly, alternatively you have 
to load your document, in advance into memory as a DOM tree. 

This is often considered as the best way for processing your xml file in 
the event the xml is to be processed time after time because; whilst you 
lose memory you gain speed, which is all important with regards to 
processing.

Online processing implies you should be linked to your XML source file to 
be able to process it, consequently this could be really slow, but you do 
use less memory. This process is much more suited if the processing is 
incredibly easy or maybe you're merely planning to process only parts of 
the file.

Regardless of what method you choose to process your XML file, C# is 
versatile enough to support either method via its .NET library classes.

The basis for the online processing is the XmlReader/XmlWriter abstract 
classes while the System.Xml.XmlDocument class will be the basis for 
offline processing.

To make your XML document you use an XmlDocument constructor, this will 
form an empty XML document in memory. Inside this XML document you can 
utilize nodes to build up an XML tree to just about any intricacy or level 
you require, step-by-step.

After building (or loading) an XML tree, you'll be able to navigate over it 
and shape it with XmlDocument's properties.

To summarize, there are a variety of selections for processing XML files in 
C#, such as browsers, or you could make use of an XML C# tool such as Liquid 
XML C# 
tool<http://www.liquid-technologies.com/XmlDataBinding/Xml-Schema-To-Cs.aspx>, 
which helps save time in producing thousands of lines of error free code, 
instantaneously from a xml or schema file.









 

-- 
You received this message because you are subscribed to the Google
Groups "DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML
Web Services,.NET Remoting" group.
To post to this group, send email to dotnetdevelopment@googlegroups.com
To unsubscribe from this group, send email to
dotnetdevelopment+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/dotnetdevelopment?hl=en?hl=en
or visit the group website at http://megasolutions.net

Reply via email to