aspose file tools*
The moose likes XML and Related Technologies and the fly likes parser to be used Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "parser to be used" Watch "parser to be used" New topic
Author

parser to be used

shalini gnana
Ranch Hand

Joined: Sep 18, 2007
Posts: 189
i want to read the xml datas into my japplet both from client and server so,what kind of parser shall i use...
Thank you..
Adrien Lyon
Greenhorn

Joined: Apr 03, 2007
Posts: 11
Hi, I use Apache Xalan.
shalini gnana
Ranch Hand

Joined: Sep 18, 2007
Posts: 189
I want to use the datas in japplet for constructing a tree...
Adrien Lyon
Greenhorn

Joined: Apr 03, 2007
Posts: 11
Oh sorry, I've been having XLST on my mind of lately. I was, without reason, assuming you we're working with XSLT as well when you asked your question. My bad.
shalini gnana
Ranch Hand

Joined: Sep 18, 2007
Posts: 189
I can go with DOM/SAX..Which would be better?
Adrien Lyon
Greenhorn

Joined: Apr 03, 2007
Posts: 11
I believe DOM is the W3C standard and SAX is event driven. I believe this means SAX is faster (or can be faster) in parsing while DOM needs to read the complete document before parsing.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
I want to use the datas in japplet for constructing a tree...


In that case the DOM is what you need since it will hold all the data and may be very close to the "tree" you want to show.

There are plenty of excellent tutorials - dont charge into this project until you have done some simple samples. Client - server is hard enough to debug without adding xml parsing problems. Work with an example of your data format as a local file first.

Bill


Java Resources at www.wbrogden.com
shalini gnana
Ranch Hand

Joined: Sep 18, 2007
Posts: 189
Whether it would be better to use SAX?
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
What part of my response:
In that case the DOM is what you need since it will hold all the data and may be very close to the "tree" you want to show.

don't you understand?
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: parser to be used
 
Similar Threads
HTML parser
XML validation
need help in appending data to an existing xml file
xml parsing code for j2me
How many XML perser are there ?