MKDoc::XML::Decode - Expands XML entities
Contents
Api
my$decode_object=newMKDoc::XML::Decode(@modules);
Constructs a new decode object using the modules specified in @modules.
my$decoded=$decode_object->decode($stuff);
Decodes $stuff and returns it into $decoded.
Any entity which is not recognized will be returned as is but will trigger a warning.
Name
MKDoc::XML::Decode - Expands XML entities
See Also
MKDoc::XML::Encode
perl v5.36.0 2022-10-13 MKDoc::XML::Decode(3pm)
Summary
MKDoc::XML::Decode is a very simple module with pluggable entity decoding mechanism. At the moment there
are three modules:
xml - Decodes ' " > < and & xhtml - Decodes XHTML entities such as é
numeric - Decodes numeric entities such as A
That's it.
This module and its counterpart MKDoc::XML::Encode are used by MKDoc::XML::Dumper to XML-encode and XML-
decode litterals.
Synopsis
use MKDoc::XML::Decode;
my $decode = new MKDoc::XML::Decode qw/xml xhtml numeric/;
# $xml is now "Chris' Baloon"
my $xml = MKDoc::XML::Decode->process ("Chris' Baloon");
