15-Jun-17 (Created: 15-Jun-17) | More in 'Old Jaxb 2.0 Tutorial 2014'

jaxb 2.0 tutorial: XML File

Manage this page

1. Back to tutorial

One folder two files


<content>
<folder id="123" name="folder123">
   <file id="1" name="file1">
       <description>desc</description>
       <contents>some text</contents>
   </file>
   <file id="2" name="file1">
       <description>desc</description>
       <contents>some text</contents>
   </file>
</folder>
</content>

More meety xml file


<?xml version="1.0" encoding="UTF-8"?>
<content>
<folder id="123" name="folder123">
   <file id="1" name="file1">
       <description>desc</description>
       <contents>some text</contents>
   </file>
   <file id="2" name="file1">
       <description>desc</description>
       <contents>some text</contents>
   </file>
</folder>
<folder id="124" name="folder124">
   <file id="1" name="file1">
       <description>desc</description>
       <contents>some text</contents>
   </file>
   <file id="2" name="file1">
       <description>desc</description>
       <contents>some text</contents>
   </file>
</folder>
<folder id="125" name="folder125">
</folder>
</content>