Tree-based access to XML documents with Java using the DOM

The purpose of this assignment was to:

The description and my solution of the Tree-based access to XML documents with Java using the DOM - assignment can be viewed at the bottom of this page.

What is DOM?

DOM is short for "Document Object Model".

The DOM is a cross-platform and cross-language interface that will allow programs and scripts to dynamically access and update the content, structure and style of documents.

The DOM provides a set of objects for HTML and XML documents, and an interface for accessing and manipulating them.

The DOM is separated into different blocks:

And different levels:

Java and the DOM - language bindings

When using DOM for a specific programming language interfaces and classes that implement the DOM itself is needed.

Because the methods aren't outlined specifically in the DOM specification, language bindings must be developed to represent the conceptual structure of the DOM for its use in Java or any other programming language.

These language bindings function as APIs used for manipulating documents as specified in the DOM specification. The latest Java Bindings can be viewed and/or downloaded from Java Bindings

Assignment Description

Create a java application that print the content of XML files. Use a DOM parser and the cv-template from the DTD and XML, Part 2 assignment.

The application should be able to be started from the command prompt like this:

java DOMEcho <xml-document>

for example:

java DOMEcho cv-template.xml


My solution, Assignment Files

<< Previous Next  >>
Loading