DTD to module/data structure?

Michael Stillwell mjs at beebo.org
Tue Mar 4 21:26:57 CST 2003

"Relaxer [http://www.relaxer.org/] creates a set of Java classes that 
form an object hierarchy that is logically equivalent to a DOM tree, 
but is easier to use programmatically."

Is there any equivalent for Perl?  Something that can go from, say,

   <!DOCTYPE person [
     <!ELEMENT first_name (#PCDATA)>
     <!ELEMENT last_name (#PCDATA)>
     <!ELEMENT phone (#PCDATA)>
     <!ELEMENT person (first_name, last_name, phone*)>

to something like

   my $p = Person->new("record.xml");



* * *

* * *

More information about the Melbourne-pm mailing list