logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Pod::Simple::DumpAsXML -- turn Pod into XML

Author

Pod::Simple was created by Sean M. Burke <sburke@cpan.org>. But don't bother him, he's retired. Pod::Simple is maintained by: • Allison Randal "allison@perl.org" • Hans Dieter Pearcey "hdp@cpan.org" • David E. Wheeler "dwheeler@cpan.org" perl v5.40.1 2025-07-27 Pod::Simple::DumpAsXML(3perl)

Description

Pod::Simple::DumpAsXML is a subclass of Pod::Simple that parses Pod and turns it into indented and wrapped XML. This class is of interest to people writing Pod formatters based on Pod::Simple. Pod::Simple::DumpAsXML inherits methods from Pod::Simple.

Name

Pod::Simple::DumpAsXML -- turn Pod into XML

See Also

Pod::Simple::XMLOutStream is rather like this class. Pod::Simple::XMLOutStream's output is space-padded in a way that's better for sending to an XML processor (that is, it has no ignorable whitespace). But Pod::Simple::DumpAsXML's output is much more human-readable, being (more-or-less) one token per line, with line-wrapping. Pod::Simple::DumpAsText is rather like this class, except that it doesn't dump with XML syntax. Try them and see which one you like best! Pod::Simple, Pod::Simple::DumpAsXML The older libraries Pod::PXML, Pod::XML, Pod::SAX

Support

Questions or discussion about POD and Pod::Simple should be sent to the pod-people@perl.org mail list. Send an empty email to pod-people-subscribe@perl.org to subscribe. This module is managed in an open GitHub repository, <https://github.com/perl-pod/pod-simple/>. Feel free to fork and contribute, or to clone <https://github.com/perl-pod/pod-simple.git> and send patches! Patches against Pod::Simple are welcome. Please send bug reports to <bug-pod-simple@rt.cpan.org>.

Synopsis

perl -MPod::Simple::DumpAsXML -e \ "exit Pod::Simple::DumpAsXML->filter(shift)->any_errata_seen" \ thingy.pod

See Also