Quick and dirty DTD parser

Edit Package perl-XML-DTDParser
http://search.cpan.org/dist/XML-DTDParser/

This module parses a DTD file and creates a data structure containing info
about all tags, their allowed parameters, children, parents, optionality
etc. etc. etc.

Since I'm too lazy to document the structure, parse a DTD you need and
print the result to a file using Data::Dumper. The datastructure should be
selfevident.

Note: The module should be able to parse just about anything, but it
intentionaly looses some information. Eg. if the DTD specifies that a tag
should contain either CHILD1 or CHILD2 you only get that CHILD1 and CHILD2
are optional. That is is the DTD contains the
result will be the same is if it contained

You get the original unparsed parameter list as well so if you need this
information you may parse it yourself.

Refresh
Refresh
Source Files
Filename Size Changed
XML-DTDParser-2.01.tar.gz 0000006799 6.64 KB
perl-XML-DTDParser.changes 0000000150 150 Bytes
perl-XML-DTDParser.spec 0000002345 2.29 KB
Latest Revision
Lars Vogdt's avatar Lars Vogdt (lrupp) committed (revision 2)
Comments 0
openSUSE Build Service is sponsored by