NAME

Meta::Xml::Parsers::Deps - dependency analyzer for XML files.

COPYRIGHT

Copyright (C) 2001, 2002 Mark Veltzer; All rights reserved.

LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.

DETAILS

MANIFEST: Deps.pm
PROJECT: meta
VERSION: 0.19

SYNOPSIS

package foo;
use Meta::Xml::Parsers::Deps qw();
my($deps_parser)=Meta::Xml::Parsers::Deps->new();
$deps_parser->parsefile($file);
my($deps)=$deps_parser->get_deps();

DESCRIPTION

This is an expat based parser whose sole purpose is finiding dependencies for xml files.

FUNCTIONS

BEGIN()
new($)
get_root($)
set_root($$)
handle_doctype($$$$$)
handle_externent($$$$)
TEST($)

FUNCTION DOCUMENTATION

BEGIN()

Bootstrap the class and add methods for "externent_prefix" and "doctype_prefix".

new($)

This gives you a new object for a parser.

get_root($)

This method will retrieve the root node for the dependency object. This method is not built using Class::MethodMaker since setting the root involves changing the graph and thus root is not a standard attribute.

set_root($$)

This will set the root node that the deps will be attached to.

handle_doctype($$$$$)

This method will handle the document type declarations and will add the dependency on the dtd to the deps object.

handle_externent($$$$)

This method will handle external entities. Remember that in a Deps parser we do not wish to process the external entity (if we had access to the graph we would have made sure that the file existed in the graph but since we dont we just omit it as dependency).

TEST($)

Test suite for this module. Currently it will just read an sgml file and will print out the deps.

SUPER CLASSES

Meta::Xml::Parsers::Base(3)

BUGS

None.

AUTHOR

Name: Mark Veltzer
Email: mailto:veltzer@cpan.org
WWW: http://www.veltzer.org
CPAN id: VELTZER

HISTORY

0.00 MV real deps for docbook files
0.01 MV fix up xml parsers
0.02 MV spelling and papers
0.03 MV finish lit database and convert DocBook to SGML
0.04 MV XML rules
0.05 MV perl packaging
0.06 MV perl packaging
0.07 MV PDMT
0.08 MV md5 project
0.09 MV database
0.10 MV perl module versions in files
0.11 MV movies and small fixes
0.12 MV thumbnail user interface
0.13 MV more thumbnail issues
0.14 MV website construction
0.15 MV web site automation
0.16 MV SEE ALSO section fix
0.17 MV finish papers
0.18 MV teachers project
0.19 MV md5 issues

SEE ALSO

Meta::Baseline::Aegis(3), Meta::Class::MethodMaker(3), Meta::Development::Deps(3), Meta::Utils::Output(3), Meta::Xml::Parsers::Base(3), URI(3), strict(3)

TODO

Nothing.