R
Ruben Stranders
I'm currently working on a program that needs to build a composite
object (a kind of tree) from a xml template file. The DTD is as
follows: (This program must support projects with deadlines, phases,
etc)
<!ELEMENT Project ((Phase*)>
<!ELEMENT Phase ((Phase | Deliverable)*)>
<!ELEMENT Deliverable EMPTY>
An example XML file:
<Project>
<Phase>
<Deliverable/>
<Phase>
<Deliverable/>
</Phase>
</Phase>
<Deliverable/>
</Project>
I want to build a Java tree from these kind of xml template files.
I've tried Apache's Digester, but I'm not sure if what I want is
possible. Could anyone tell me if Digester can parse these kind of
files? If not, what should I use?
kind regards,
Ruben Stranders
object (a kind of tree) from a xml template file. The DTD is as
follows: (This program must support projects with deadlines, phases,
etc)
<!ELEMENT Project ((Phase*)>
<!ELEMENT Phase ((Phase | Deliverable)*)>
<!ELEMENT Deliverable EMPTY>
An example XML file:
<Project>
<Phase>
<Deliverable/>
<Phase>
<Deliverable/>
</Phase>
</Phase>
<Deliverable/>
</Project>
I want to build a Java tree from these kind of xml template files.
I've tried Apache's Digester, but I'm not sure if what I want is
possible. Could anyone tell me if Digester can parse these kind of
files? If not, what should I use?
kind regards,
Ruben Stranders