NAME

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

COPYRIGHT

Copyright (C) 2001 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

SYNOPSIS

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

DESCRIPTION

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

EXPORTS

new($) get_result($) get_root($) set_root($$) handle_doctype($$$$$) handle_externent($$$$)

FUNCTION DOCUMENTATION

new($)

This gives you a new object for a parser.

get_result($)

This will return the dependency object which is the result of the parse.

get_root($)

This method will retrieve the root node for the dependency object.

set_root($$)

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

get_search_path($)

This method will retrieve the baseline relative path where this parser thinks the deps are.

set_search_path($$)

This method will set the search path.

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).

BUGS

None.

AUTHOR

Mark Veltzer <mark2776@yahoo.com>

HISTORY

None.

SEE ALSO

Nothing.

TODO

Nothing.