This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes XML and Related Technologies and the fly likes  Question to Sas Jacobs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark " Question to Sas Jacobs" Watch " Question to Sas Jacobs" New topic

Question to Sas Jacobs

venkatjava venkat

Joined: Nov 20, 2005
Posts: 5
AJAX can be used in javascript to return text output (used to inject html and javascript dynamically in a page).Text output can be used to return data also, and regular expresssion can extract the required data. We could even use JSON to construct a java script object from a servlet and return it. Now this can be evaled and javascript object is created at runtime. Thus we have many different ways of doing this. Then What is the advantage of returning xml output through AJAX ?
Milesh Dcunha

Joined: Jun 19, 2006
Posts: 13
JSON is language independent Data-interchange format just as XML is ....

The world is becoming an orgy of self-sacrifice when it is precisely the self that should not be sacrificed.
Sas Jacobs
Ranch Hand

Joined: Jun 24, 2006
Posts: 46

I answered this in your previous post which seems to be identical.


Sas Jacobs
subject: Question to Sas Jacobs