---
name: "MKDoc::XML::Decode"
section: "3pm"
platform: "linux"
package: "libmkdoc-xml-perl"
version: "0.75-6"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/MKDoc::XML::Decode"
---

# MKDoc::XML::Decode(3pm)

Expands XML entities

## NAME

MKDoc::XML::Decode - Expands XML entities

## 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&apos; Baloon");
```

## SUMMARY

MKDoc::XML::Decode is a very simple module with pluggable entity decoding mechanism. At the moment there are three modules:

xml     - Decodes &apos; &quot; &gt; &lt; and &amp; xhtml   - Decodes XHTML entities such as &eacute; numeric - Decodes numeric entities such as &#65;

That's it.

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

## API

### my $decode\_object = new MKDoc::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.

## AUTHOR

Copyright 2003 - MKDoc Holdings Ltd.

Author: Jean-Michel Hiver

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::Encode
