LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Man Pages in JSON or xml format (https://www.linuxquestions.org/questions/linux-newbie-8/man-pages-in-json-or-xml-format-930670/)

mande01 02-22-2012 06:26 AM

Man Pages in JSON or xml format
 
Hello,

I've been googling on and off now for about 2 days!

i can't seam to find the linux command line man pages in an JSON or XML format.

Could someone point me to them if they know of one, or point me in the direction of actually setting the man pages up in xml or JSON format?

Thank you,
Der

evo2 02-22-2012 10:56 PM

Hi,

there is a python script, man2xml.py, in the devhelp package on Debian.

HTH,

Evo2.

mande01 02-23-2012 01:55 AM

Thank you,

now I need to get this online and kept up to date!!!

Thanks,
Der

mande01 02-23-2012 03:26 AM

I have marked this as solved, but if anyone knows where i could get the man pages online in xml format and kept up to date, that would be great.

If I get it done, I'll post back here.

Der

chrism01 02-24-2012 05:33 AM

Not quite sure if you want something like this http://linux.die.net/man/ ?

mande01 02-27-2012 04:44 AM

@chrism01,
not exactly, I want to specifically create a location which contains the man pages that can be accessed via a service which is reading in xml or json format.

There isn't an app for that! :P

chrism01 02-28-2012 12:07 AM

Well, I'm pretty sure there's a Perl module to cvt from whatever man page format you have to either JSON or xml; your choice.
Try search.cpan.org
Text/data munging is one of Perl's strengths :)


All times are GMT -5. The time now is 08:56 PM.