XML::XBEL::thingy - private methods for XBEL thingies.


XML-XBEL documentation Contained in the XML-XBEL distribution.

Index


Code Index:

NAME

Top

XML::XBEL::thingy - private methods for XBEL thingies.

SYNOPSIS

Top

 None.

DESCRIPTION

Top

Private methods for XBEL thingies.

VERSION

Top

$Revision: 1.2 $

DATE

Top

$Date: 2004/06/23 06:23:57 $

AUTHOR

Top

Aaron Straup Cope <ascope@cpan.org>

SEE ALSO

Top

<XML::XBEL>

LICENSE

Top

Copyright (c) 2004 Aaron Straup Cope. All Rights Reserved.

This is free software, you may use it and distribute it under the same terms as Perl itself.


XML-XBEL documentation Contained in the XML-XBEL distribution.
use strict;
package XML::XBEL::thingy;

# $Id: thingy.pm,v 1.2 2004/06/23 06:23:57 asc Exp $

sub delete {
    my $self = shift;

    my $parent = $self->{'__root'}->parentNode();
    $parent->removeChild($self->{'__root'});

    undef $self;
}

sub build_node {
    my $pkg = shift;
    my $node = shift;

    return bless {'__root' => $node}, $pkg;
}

return 1;