ePages 6.11.0 - DE_EPAGES/XML/API/BaseDeleteHandler.pm

Package DE_EPAGES::XML::API::BaseDeleteHandler

This is the base class for XML delete handlers.

Functions

deleteXML
getAttributes
popID
pushID

deleteXML

Deletes data from an XML file.

Syntax
$Package->deleteXML( $FileName );
Input
$FileName (string)
XML file name

getAttributes

Returns the attributes of an element as hash.

Syntax
$hAttributes = $self->getAttributes( $Element );
$hAttributes = $self->getAttributes( ( $Element, $Namespace );
Example
my $Name = $self->getAttributes( $Element )->{'Name'};
Input
$Element (string)
element object (first parameter of start_element)
$Namespace (string)
XML namespace name (default='')
Return
$hAttributes (hash ref)
attributes hash

popID

Removes a parameter from the parameter stack and returns its value.

Syntax
$Value = $self->popID( $Key );
Example
$CompanyID = $self->popID( 'CompanyID' );
Input
$Key (string)
parameter name
Return
(parameter value)
$Value

pushID

Adds a parameter to the parameter stack. Any previous parameter with the same name will be hidden until $self->popID( $Key ) is called. Use $self->topID( $Key ) to get the parameter value. Use $self->popID( $Key ) to remove the parameter from the stack.

Syntax
$self->pushID( $Key, $Value );
Example
$self->pushID( 'CompanyID', $CompanyID );
Input
$Key (string)
parameter name
$Value
parameter value