wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes Better Way to parse xml at browser side or server side 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 "Better Way to parse xml at browser side or server side" Watch "Better Way to parse xml at browser side or server side" New topic
Author

Better Way to parse xml at browser side or server side

jaan bhavsar
Ranch Hand

Joined: Aug 23, 2008
Posts: 32
Hi All,

I require Advice on Parsing xml file which contains about 30000 data just want better approach to parse the xml.. which is better way to parse at server side or at client side.. Suppose i am using json then which way is better to parse at client side or server side.

Thank you in Advance for the support.
Regards
Jatan

Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

I don't understand the question. I am going to assume your are using JSON/XML purely for data exchange. If this is the case than JSON is definitely the better choice. It must be marshalled and unmarshalled at both ends assuming you want to do anything with the data, which is why your question does not make sense. If I am some java script running in a browser and I want to send some data to the server I must marshall that data into JSON and post it to the server. Now on the server side I must take the JSON message I received and unmarshall it into a java object and do something with the data that was sent. I then optionally may send a response which will have to be marshalled into JSON and sent to the client where once again it must be unmarshalled. If you have a different use case you are going to have to be more clear on what you are trying to accomplish.


[How To Ask Questions][Read before you PM me]
 
Consider Paul's rocket mass heater.
 
subject: Better Way to parse xml at browser side or server side
 
Similar Threads
Sending XML data to webservice
AJAX Response : String or XML?
Help for XML gerneartion
need help on posting xml over http
how to use XML here?