ePages 6.10 - DE_EPAGES/Dictionary/API/XML/DictionaryImportHandler.pm

Package DE_EPAGES::Dictionary::API::XML::DictionaryImportHandler

This module implements a SAX2 handler to import dictionary files.

Base
DE_EPAGES::XML::API::BaseImportHandler
Example
<?xml version="1.0" encoding="iso-8859-1"?>
<epages>
  <Language Language="de">
    <Translation Keyword="Language" Value="Sprache" />
  </Language>
</epages>
...
use DE_EPAGES::Dictionary::API::XML::DictionaryImportHandler qw (ImportDictionary);
my $hhDictionary = ImportDictionary('Dictionary.en.xml');
@EXPORT_OK
ImportDictionary

Functions

ImportDictionary

ImportDictionary

Imports dictionary from an XML file. If a dictionary exists the function extends this dictionary.

Syntax
$Dictionary = ImportDictionary( $FileName, $Dictionary, $LanguageCode );
Input
$FileName (string)
XML file name
$Dictionary (ref.hash.hash)
existing dictionary (optional)
Return
$Dictionary (ref.hash.hash)
imported dictionary