-
SAX Parser
MS XML DOM or any other DOM is, as you would already be knowing, a memomry
representation of the XML file which is accessible thru code. The entire
XML file is parsed, validated and the DOM tree is created. SAX which stands
for Simple API for XML is one level below this. It is a set of routines which
read the XML file parse each tag and raise event such as startElement(),
endElement() etc. These events are used by DOM parsers to create the DOM
tree. In cases where the XML files are very large, loading them in the memory
in form of a tree is not such a good idea. Other example could be a case
where a custom Object Model is required. In these cases it is more useful
to use SAX parsers and catch events raised by them. The SAX is faster than
DOM but the programming is trickier ;-)
Hope it helps,
-
Re: SAX Parser
From what i understand ,currently the MS XML3.0 only supports VC++ for SAX
support. is there a way to do in other languages ?
Ramesh
"rajeev" <rajeevsa@niit.com> wrote:
>
>MS XML DOM or any other DOM is, as you would already be knowing, a memomry
>representation of the XML file which is accessible thru code. The entire
>XML file is parsed, validated and the DOM tree is created. SAX which stands
>for Simple API for XML is one level below this. It is a set of routines
which
>read the XML file parse each tag and raise event such as startElement(),
>endElement() etc. These events are used by DOM parsers to create the DOM
>tree. In cases where the XML files are very large, loading them in the memory
>in form of a tree is not such a good idea. Other example could be a case
>where a custom Object Model is required. In these cases it is more useful
>to use SAX parsers and catch events raised by them. The SAX is faster than
>DOM but the programming is trickier ;-)
>
>Hope it helps,
>
-
Re: SAX Parser
You can also do development in VB 6.0 using ADO 2.5 and you can save recordsets
from you ASP pages to an XML file using adpersistXML. As XML is not rendered
well on its own, using XSLT, you can transorm it to look the way you want.
Have fun....
"Ramesh" <n_ramesh@yahoo.com> wrote:
>
>From what i understand ,currently the MS XML3.0 only supports VC++ for SAX
>support. is there a way to do in other languages ?
>
>Ramesh
>
>"rajeev" <rajeevsa@niit.com> wrote:
>>
>>MS XML DOM or any other DOM is, as you would already be knowing, a memomry
>>representation of the XML file which is accessible thru code. The entire
>>XML file is parsed, validated and the DOM tree is created. SAX which stands
>>for Simple API for XML is one level below this. It is a set of routines
>which
>>read the XML file parse each tag and raise event such as startElement(),
>>endElement() etc. These events are used by DOM parsers to create the DOM
>>tree. In cases where the XML files are very large, loading them in the
memory
>>in form of a tree is not such a good idea. Other example could be a case
>>where a custom Object Model is required. In these cases it is more useful
>>to use SAX parsers and catch events raised by them. The SAX is faster than
>>DOM but the programming is trickier ;-)
>>
>>Hope it helps,
>>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks