The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

NamespaceManager - parses and stores namespaces for gwybodaeth

SYNOPSIS

    use NamespaceManager;

    my $nm = NamespaceManager->new();

    $nm->map_namespace($data);
    $nm->get_namspace_hash();

DESCRIPTION

This module stores namespace data and makes these available as a hash.

new()

Returns an instance of the NamespaceManager class.

map_namespace($data)

Takes an array reference $data, and maps any namespaces declared into a hash. Returns a refence to this hash. It also stores any @base elements found.

get_namespace_hash()

Returns a hash reference to a hash containing mapped namespaces.

get_base()

Returns a reference to the base of the document.

AUTHOR

Iestyn Pryce, <imp25@cam.ac.uk>

ACKNOWLEDGEMENTS

I'd like to thank the Ensemble project (www.ensemble.ac.uk) for funding me to work on this project in the summer of 2009.

COPYRIGHT AND LICENSE

Copyright (C) 2009 Iestyn Pryce <imp25@cam.ac.uk>

This library is free software; you can redistribute it and/or modify it under the terms of the BSD license.