munk28 has asked for the wisdom of the Perl Monks concerning the following question:

Hello, Is there a way to convert POD files to XML or JSON ?

Replies are listed 'Best First'.
Re: Convert POD to XML or JSON files
by toolic (Bishop) on Nov 12, 2013 at 00:31 UTC
      Thank you for the reply! I did checkout POD::XML but it says it can't convert it to standard xml format. Have you had any experience using this module before? If so, please share it here.

        What it means is that it doesn't output a standardised document format such as XHTML, Docbook, OOXML, etc. The output is still valid XML 1.0, and can be handled with generic XML tools.

        Unless you need a particular flavour of XML, Pod::XML will do the job. Even if you do need a particular flavour of XML, I'd consider using Pod::XML and then post-processing with XSLT.

        use Moops; class Cow :rw { has name => (default => 'Ermintrude') }; say Cow->new->name
Re: Convert POD to XML or JSON files
by Anonymous Monk on Nov 12, 2013 at 00:34 UTC