Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 7th, 2006, 11:59 PM
Registered User
 
Join Date: Sep 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to parse xml using SAX Parser??

Currently i am using xmldom parser to parse xml document..
As the xml document contains more than 3000 records, it takes quite long time to load the data in the web page..

So can anyone help me how to use SAX parser to load xml data???

 
Old September 8th, 2006, 02:53 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Are you doing the parsing within a browser, loading the XML from a server? In that case, I don't think SAX is a reasonable option. You need to reduce the size of the data you are downloading, doing more of the work on the server.

To help with application architecture decisions one really needs more than a two-line requirements statement.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old September 8th, 2006, 02:56 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

What server-side language are you using? If one of the .NET ones then I would use XmlReader rather than SAX as, in my opinion, it's easier to work with.
If you can't do that then you will need to find a suitable SAX implementation and read up on the different events fired by the processor and how to handle them.
Having said all that 3000 records does not seem like a lot but obviously they could be of any size. How large is the XML file?

--

Joe (Microsoft MVP - XML)





Similar Threads
Thread Thread Starter Forum Replies Last Post
org.xml.sax.SAXParseException: Premature end ksskumar XSLT 1 March 19th, 2008 04:01 AM
how to use sax parser pavanntcs XSLT 3 September 13th, 2006 02:02 AM
problem with validating sax parser vijay3000 XML 1 April 18th, 2006 10:15 AM
SAX Parser Error dpan168 XML 0 October 26th, 2004 04:53 PM
import org.xml.sax is deprecated sax XML 1 November 17th, 2003 08:35 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.