The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

MKDoc::XML::Decode - Expands XML entities

SYNOPSIS

  use MKDoc::XML::Decode;

  # $xml is now "Chris' Baloon"
  my $xml = MKDoc::XML::Decode->process ("Chris' Baloon");

SUMMARY

MKDoc::XML::Decode is a very simple module which decodes the following entities.

  '
  "
  >
  <
  &

That's it. If you also wish to decode HTML entities, use it in conjunction with MKDoc::XML::DecodeHO.

This module and its counterpart MKDoc::XML::Encode are used by MKDoc::XML::Dumper to XML-encode and XML-decode litterals.

API

my $decoded = MKDoc::XML::Decode->process ($xml_litteral);

Does what is said in the summary.

AUTHOR

Copyright 2003 - MKDoc Holdings Ltd.

Author: Jean-Michel Hiver <jhiver@mkdoc.com>

This module is free software and is distributed under the same license as Perl itself. Use it at your own risk.

SEE ALSO

MKDoc::XML::DecodeHO MKDoc::XML::Encode