LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-22-2012, 06:26 AM   #1
mande01
LQ Newbie
 
Registered: Aug 2009
Posts: 23

Rep: Reputation: 2
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

Last edited by mande01; 02-22-2012 at 06:29 AM. Reason: Typo
 
Old 02-22-2012, 10:56 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

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

HTH,

Evo2.
 
Old 02-23-2012, 01:55 AM   #3
mande01
LQ Newbie
 
Registered: Aug 2009
Posts: 23

Original Poster
Rep: Reputation: 2
Thank you,

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

Thanks,
Der
 
Old 02-23-2012, 03:26 AM   #4
mande01
LQ Newbie
 
Registered: Aug 2009
Posts: 23

Original Poster
Rep: Reputation: 2
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
 
Old 02-24-2012, 05:33 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,284

Rep: Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347
Not quite sure if you want something like this http://linux.die.net/man/ ?
 
Old 02-27-2012, 04:44 AM   #6
mande01
LQ Newbie
 
Registered: Aug 2009
Posts: 23

Original Poster
Rep: Reputation: 2
@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
 
Old 02-28-2012, 12:07 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,284

Rep: Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347Reputation: 2347
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Printing man-pages in original format JZL240I-U Linux - General 3 10-26-2010 08:26 AM
Converting XML to JSON in PHP lerad512 Programming 1 05-27-2008 04:04 PM
LXer: How to bridge the gap between XML and Ajax with JSON LXer Syndicated Linux News 0 09-14-2006 08:21 PM
Linux MAN Pages in PDF format SolarDegree Linux - Newbie 5 03-23-2003 01:01 PM
Linux MAN Pages in PDF format SolarDegree Linux - General 1 03-23-2003 07:53 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration