exercise No. 14

A sub structured <title> Create comment in forum

Creation of an extended XML document instance

In order to run the examples the jdom2 library must be configured in your project's pom.xml.

The DOM creating example given before may be used as a starting point. Extend the DOM tree created in Figure 779, “XML document creation from scratch. ” to produce an extended XML document:

  <long>The long version of this title</long>
  <short>Short version</short>