SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-XML-DTDParser rpm build for : OpenSuSE. For other distributions click perl-XML-DTDParser.

Name : perl-XML-DTDParser
Version : 2.01 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : lp154.1.1 Date : 2023-01-27 16:53:17
Group : Development/Libraries/Perl Source RPM : perl-XML-DTDParser-2.01-lp154.1.1.src.rpm
Size : 0.02 MB
Packager : https://www_suse_com/
Summary : Quick and dirty DTD parser
Description :
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 < !ELEMENT FOO (BAR|BAZ)> the
result will be the same is if it contained < !ELEMENT FOO (BAR?,BAZ?)>

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

Since version 1.6 this module supports my \"extensions\" to DTDs. If the DTD
contains a comment in form

< !--#info element=XXX foo=bar greeting=\"Hello World!\" person=\'d\'\'Artagnan\'-->

and there is an element XXX in the DTD, the resulting hash for the XXX will
contain

\'foo\' => \'bar\',
\'person\' => \'d\\\'Artagnan\',
\'greeting => \'Hello World!\'

If the DTD contains

< !--#info element=XXX attribute=YYY break=no-->

the

$DTD->{XXX}->{attributes}->{YYY}->[4]

will be set to

{ break => \'no\' }

I use this parser to import the DTD into the database so that I could map
some fields to certain tags for output and I want to be able to specify the
mapping inside the file:

< !--#info element=TagName map_to=\"FieldName\"-->

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-X/15.4/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-XML-DTDParser-2.01-lp154.1.1.noarch.rpm
     

Provides :
perl(XML::DTDParser)
perl-XML-DTDParser

Requires :
perl(:MODULE_COMPAT_5.26.1)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsXz) <= 5.2-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.26.1/XML
/usr/lib/perl5/vendor_perl/5.26.1/XML/DTDParser.pm
/usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
/usr/share/doc/packages/perl-XML-DTDParser
/usr/share/doc/packages/perl-XML-DTDParser/Changes
/usr/share/doc/packages/perl-XML-DTDParser/README
/usr/share/man/man3/XML::DTDParser.3pm.gz

 
ICM