ePages 7.26.0 - 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

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