NAME
PXML::Serialize
SYNOPSIS
DESCRIPTION
SPECIAL VALUES
There are some special values that the serializer will evaluate transparently:
- promises from FP::Lazy
-
are
force
d - code references
-
are called with no arguments
- objects
-
In body context, their `pxml_serialized_body_string` method (if available) will be called, in attribute context, `pxml_serialized_attribute_string`, in both cases the string is inserted into the output without escaping (see `PXML::Preserialize` for an example that uses this). Missing those, `string` will be called if available and the result escaped, otherwise an exception is thrown.
NOTE
This is alpha software! Read the status section in the package README or on the website.