Why should I use JSON over XML ?

Why should I use JSON over XML ? Why JSON is given so importance these days ?

Many questions like these are asked many times by new developers. So, I decided to write this article. However last year I presented same topic and uploaded in SlideShare.

Before Winter12 release, for JSON related stuff we had to depend on external Libraries. However in Winter12, salesforce has added support for JSON natively on force.com plateform.  Also, on every release Salesforce is making required changes in JSON library to make it more stable and more usable. I have shared many topics on JSON in past, on which you can have a look.

Validate XML Schema Using DOM Parser and SAX Parser in JAVA Using Swing

In this article, i am going to use the Swing for the UI purpose and for the XML validation against its schema i will use DOM parser as well as SAX Parser. previously we have already seen that how these parsers works in detail.

Application output will look like below snap:

Input Screen - XML Schema Validation in JAVA Using DOM and SAX Parser
Input Screen - XML Schema Validation in JAVA Using DOM and SAX Parser

Published
Categorized as JAVA Tagged

Difference between SAX and DOM Parsers

In Previous articles we have discussed about JAXP in detail.

To summarize all, lets discuss difference between both approach.

Published
Categorized as JAVA Tagged