on 11-28-2007 8:47 AM
What are the various type of files we can parse with SAX parser and give output using SAX parser?
XML files only as the name implies...AFAIK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sankar
SAX (Simple API for XML) it is probably the most complete and accurate method so far.
This is used for XML documents.The SAX classes provide an interface between the input streams from which XML documents are read and the client software which receives the data made available by the parser. The parser browses through the whole document and fires events every time it recognizes an XML construct (e.g. it recognizes a start tag and fires an event the client software is notified and can use this information or not).
If you recall that the XML structure is a set of nodes of various types (like an element node) parsing the document with a SAX parser means going through each node one at a time. This makes it possible to read even very large XML documents in a memory-efficient way
For more details on SAX parser and also to have a look on examples you can follow this link.
Hope it will solve your problem
http://en.wikibooks.org/wiki/XML_-_Managing_Data_Exchange/Parsing_XML_files
Thanks
Sandeep Sharma
PS: if helpful reward points
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sankar Choudhury ,
We can parse only XML Files .
Pls go thru the examples from the following websites & then u wil only come 2 know :
SAX Example
http://www.informit.com/articles/article.aspx?p=26351&seqNum=6&rl=1
Event or DOM parsing?
http://discuss.joelonsoftware.com/default.asp?design.4.156750.12
SAX samples
http://xerces.apache.org/xerces2-j/samples-sax.html
Set up a SAX parser
http://www.ibm.com/developerworks/xml/library/x-tipsaxp.html
Simple API for XML (SAX)
http://en.wikipedia.org/wiki/Simple_API_for_XML
SAX Parser Benchmarks
http://piccolo.sourceforge.net/bench.html
XML Parsers: DOM and SAX Put to the Test
http://www.devx.com/xml/Article/16922/1954?pf=true
High-Performance XML Parsing With SAX
http://www.xml.com/pub/a/2001/02/14/perlsax.html
Using the SAX Parser
http://www.javacommerce.com/displaypage.jsp?name=saxparser1.sql&id=18232
Class SAXParser
http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/SAXParser.html
Class SAXParser
http://people.apache.org/~andyc/neko/doc/html/javadoc/org/cyberneko/html/parsers/SAXParser.html
SAX Parsers
http://webdesign.about.com/od/saxparsers/SAX_Parsers.htm
Interface SAXParser
http://excalibur.apache.org/apidocs/org/apache/excalibur/xml/sax/SAXParser.html
Class SAXParser
http://xerces.apache.org/xerces2-j/javadocs/xerces2/org/apache/xerces/parsers/SAXParser.html
cheers!
gyanaraj
****Pls reward points if u find this helpful
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
XML Files
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
every file that has a XML structure (means also: XSLT, XSD an so on)
Regards Mario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.