ePages 6.10 - DE_EPAGES/Object/API/XML/ObjectDeleteHandler.pm

Package DE_EPAGES::Object::API::XML::ObjectDeleteHandler

This module implements a SAX2 handler to delete object type(s) Object, Class, Attribute.

Example
use DE_EPAGES::Object::API::XML::ObjectDeleteHandler qw( DeleteObjects );
DeleteObjects( 'Objects.xml' );
@EXPORT_OK
DeleteObjects

Functions

DeleteObjects
varsOnErrorString

DeleteObjects

Deletes objects that are marked with 'delete=1' in the XML file.

Syntax
DeleteObjects( $FileName );
DeleteObjects( $FileName, $Path );
Example
DeleteObjects( 'DemoShop.xml', '/Shops/DemoShop' );
Input
$FileName (string)
XML file name
$Path (string)
(optional) path to parent object

varsOnErrorString

Returns information about the current position in the XML file.

Syntax
$Position = $self->varsOnError();
$Position = $self->varsOnError( $Element );
Input
$Element (object)
(optional) XML element (parameter of start_element)
Return
$Position (string)
parser information including: FileName, Script, XMLPosition