Unusual read, write XML request.

I have a program that builds a JTree based upon a template , and properties file passed to it.

I need a program that will rip through an xml file such as this xml file:

<?xml version="1.0" encoding="UTF-8"?>

<Device>

<Module name="Module 1">

<status>

<device Name="Yellowfin Demo"

Description="Beta Tag mapper"

Location="Jim's 13 slot rack"

Contact="Jim"

Serial Number="" >

</device>

<network></network>

<chassis></chassis>

<chassis></chassis>

</status>

<projedit></projedit>

<projmngt></projmngt>

<admin>

<network></network>

<device></device>

<users></users>

</admin>

<logging></logging>

</Module>

</Device>

and create a properties file that has this information in it:

Devices.Module 1.Status.Device.Name=Yellowfin Demo

Devices.Module 1.Status.Device.Description=Beta Tag mapper

Devices.Module 1.Status.Device.Location=Jim's 13 slot rack

Devices.Module 1.Status.Device.Contact=Jim

Devices.Module 1.Status.Device.Serial Number=

Devices.Module 1.Status.Network.Ethernet 1.MAC Address=

Devices.Module1.Status.Network.Ethernet 1.IP Adress=

Devices.Module1.Status.Network.Ethernet 1.SubNet Mask=

Devices.Module1.Status.Network.Ethernet 1.Default Gateway=

Devices.Module1.Status.Network.Ethernet 2.MAC Address=

Devices.Module1.Status.Network.Ethernet 2.IP Adress=

Devices.Module1.Status.Network.Ethernet 2.SubNet Mask=

Devices.Module1.Status.Network.Ethernet 2.Default Gateway=

etc...

This properties file is fead to the program and creates the JTree

Is it possible?

[2127 byte] By [orozcoma] at [2007-11-26 12:38:29]
# 1

Yes, of course there's a way to do this whatever you have in mind actually. What makes your request unusual is that you have posted an ill-formed XML document and an output that is inconsistent with this document. An unambiguous description of how to construct the lines of the output file would also have been a great step forward to get a detailed answer.

prgguya at 2007-7-7 16:07:23 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...