x
Loading
 Loading
Hello, Guest | Login | Register

The Perfect Match

Java and XML complement each other perfectly. “Portable Code, Portable Data,” is Sun’s tagline for describing how Java and XML work together, and it’s right on the money. One of the best reasons for using Java is its portability; you write for the Java Virtual Machine (JVM), not a specific platform. Your application will run on any platform that has a JVM. Java supports Unicode from the ground up, so you have internationalization built right into your application; localization, of course, is another issue. It is a clean, easy-to-use object-oriented language that has gained widespread use and acceptance.

Java and XML complement each other perfectly. “Portable Code, Portable Data,” is Sun’s tagline for describing how Java and XML work together, and it’s right on the money. One of the best reasons for using Java is its portability; you write for the Java Virtual Machine (JVM), not a specific platform. Your application will run on any platform that has a JVM. Java supports Unicode from the ground up, so you have internationalization built right into your application; localization, of course, is another issue. It is a clean, easy-to-use object-oriented language that has gained widespread use and acceptance.

There are many reasons why XML has achieved the same widespread use and acceptance that Java has. First, XML is a standard that defines a language to create markup languages. This standard is maintained by the World Wide Web Consortium (W3C), not any particular company. So, you don’t have to worry about different “flavors” of XML causing incompatibilities across platforms. And since there is only one standard, every XML parser will parse valid XML. There are numerous free XML parsers and APIs with years of development and use available instantly. You don’t have to write your own parser for your customized data format — a potentially lengthy and costly endeavor. XML documents have an intrinsically hierarchical structure, which makes it easy to build hierarchies of objects in your application. Finally, processing international documents is much simpler since XML parsers must support Unicode encoded files.

In previous issues, Norm Walsh…

Please log in to view this content.

Not Yet a Member?

Register with LinuxMagazine.com and get free access to the entire archive, including:

  • Hands-on Content
  • White Papers
  • Community Features
  • And more.
Already a Member?
Log in!
Username

Password

Remember me

Forgotten your password?
Forgotten your username?
Read More
  1. Helpful Tools for Software Developers
  2. The Github Hall of Fame
  3. Book'em, Github.
  4. This Week on Github: Stupid Ruby Tricks
  5. A Veritable Scatter Shot!
Follow Linux Magazine
Rackspace