• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 42. Java and XML > Reading XML Documents

Reading XML Documents

If you've read Part II, "XML," you know that XML is a wonderful language that lets you develop documents in a platform- and vendor-neutral format. Likewise, if you've been reading the other chapters here in Part VI "Java 2," you know that Java is a platform-independent programming language. Although the language was developed by Sun, the list of licensees reads like a veritable "who's who" of computing. So, it should come as no surprise that many people believe that Java and XML were made for each other. You can write Java to run on nearly any computing platform. On that platform, the program can read XML documents and use them as input. The program can allow the user to edit the document or even transform the document itself.

The points of this chapter are illustrated by developing a small Java servlet that allows users to edit files, and then writes those files out as HTML. Before you get to the application, however, you need to look at the fundamentals of working with XML in Java.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint