Re: XML PARSER
From: Peter Rilling (peter_at_nospam.rilling.net)
Date: 08/25/04
- Next message: Herfried K. Wagner [MVP]: "Re: All methods are virtual?"
- Previous message: C# Learner: "Re: No .NET Runtime Included in XP SP2"
- In reply to: andre_at_online.nospam: "XML PARSER"
- Next in thread: clintonG: "Re: XML PARSER"
- Reply: clintonG: "Re: XML PARSER"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 25 Aug 2004 16:05:13 -0700
Vague question but here we go.
First DOM and SAX are really the only way to go and they are competing
standards (competing in the since that they accomplish the parsing in
different ways). DOM basically builds a tree of the XML and allows you to
randomly access elements and attributes. SAX on the other hand is event
based meaning that the engine will read an element one at a time and then
send the element to your application for processing. It basically processes
the document from front to back.
What you us for a parser is really a matter of what environment you plan to
develop in. If you are going to use .NET, then you will probably use its
parser. Microsoft also the MSXML parser that was used prior to .NET. Their
languages or environments may have different parsers and there are probably
lots of parsers out there are people tend to reinvent the wheel.
XSLT is not a parser per say but is a "language" allowing you to transform
some XML structure into something else. XSLT is primarily used for
presentation where you might want to turn an XML document into HTML.
"andre@online.nospam" <andreonlinenospam@discussions.microsoft.com> wrote in
message news:FB4D368F-F74D-49CD-930C-EA7157BD14CF@microsoft.com...
> I am working on a project where I will be getting a XML file. What should
I
> use for a parser? I'm interested in what MS has to offer with the Visual
> studio .net platform.
>
> I was told DOM and SAX was what I should be looking at. Also, is XSLT a
> parser?
>
> I'm going to insert the data into a database.
>
> Thank you,
>
- Next message: Herfried K. Wagner [MVP]: "Re: All methods are virtual?"
- Previous message: C# Learner: "Re: No .NET Runtime Included in XP SP2"
- In reply to: andre_at_online.nospam: "XML PARSER"
- Next in thread: clintonG: "Re: XML PARSER"
- Reply: clintonG: "Re: XML PARSER"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|