XML, Java: Are They Siblings or Rivals?

Extensible Markup Language (XML) in many ways augments Java; however, XML is also evolving into an object transport protocol that could undermine Java's claim as a does-all platform.

XML tags Web-based information for recognition by developers and computers, which is necessary because HTML lacks a way to add meaning to content aside from cryptic URLs. XML aims to add that meaning to Web objects -- a task once assigned to Java.

XML lets developers choose between building Web applications or Java systems, said Adam Berrey, US-based product marketing director at Allaire, a maker of Web application servers. All that is needed is a client that renders XML into HTML, not a Java virtual machine (JVM)-based client.

Sun acknowledges that XML can communicate to clients without JVMs, but it claims XML needs Java to reach its potential.

"XML is not useful alone; it is a complement to Java," said Nancy Lee, US-based product manger for XML at Sun Microsystems. "Java provides the portable code to [XML], and XML offers the data for Java."

At December's Java Business Expo, in New York, Sun will demonstrate a Java-based XML parser and APIs that use Java to provide core services to run XML in applications, according to Lee.

XML can create open data that is not dependent on a platform, language, or restrictive formatting convention. If widely adopted, XML could become a de facto standard for communicating content and objects down to clients.

That sounds a lot like what Java does, at least as a content platform. It is just such a role for XML that appeals to Microsoft, which disdains Java's use for purposes other than programming.

"XML lets you exchange information across platforms, not to be confused with writing cross-platform applications," said Dave Wascha, XML product manager at Microsoft in the US.

Join the newsletter!


Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.
Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Dana Gardner

PC World
Show Comments

Brand Post

Most Popular Reviews

Latest Articles


PCW Evaluation Team

Luke Hill


I need power and lots of it. As a Front End Web developer anything less just won’t cut it which is why the MSI GT75 is an outstanding laptop for me. It’s a sleek and futuristic looking, high quality, beast that has a touch of sci-fi flare about it.

Emily Tyson

MSI GE63 Raider

If you’re looking to invest in your next work horse laptop for work or home use, you can’t go wrong with the MSI GE63.

Laura Johnston

MSI GS65 Stealth Thin

If you can afford the price tag, it is well worth the money. It out performs any other laptop I have tried for gaming, and the transportable design and incredible display also make it ideal for work.

Andrew Teoh

Brother MFC-L9570CDW Multifunction Printer

Touch screen visibility and operation was great and easy to navigate. Each menu and sub-menu was in an understandable order and category

Louise Coady

Brother MFC-L9570CDW Multifunction Printer

The printer was convenient, produced clear and vibrant images and was very easy to use

Edwina Hargreaves

WD My Cloud Home

I would recommend this device for families and small businesses who want one safe place to store all their important digital content and a way to easily share it with friends, family, business partners, or customers.

Featured Content

Product Launch Showcase

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?