---
name: "MKDoc::XML::Encode"
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::Encode"
---

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

Encodes XML entities

## NAME

MKDoc::XML::Encode - Encodes XML entities

## SYNOPSIS

```
  use MKDoc::XML::Encode;
  # $xml is now "Chris&apos; Baloon"
  my $xml = MKDoc::XML::Encode->process ("Chris' Baloon");
```

## SUMMARY

MKDoc::XML::Encode is a very simple module which encodes the following entities.

```
  &apos;
  &quot;
  &gt;
  &lt;
  &amp;
```

That's it.

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

## API

### my $xml\_encoded = MKDoc::XML::Encode-\>process ($some\_string);

Does what is said in the summary.

## 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::DecodeHO MKDoc::XML::Encode
