[PHP] PHP documentation parsing?

2008-07-18 Thread Christian A. Reiter
As you maybe know, the program "kdevelop" under Linux has a built in 
documentation browser which uses the online php documentation which was on 
the homepage of the Minnesota university.
Since this homepage isn't available any more the documentation is broken.
I tried to link to the new page, but the doc-browser uses an internal xml file 
which describes the base URL and the nodes of the manual
(if you have a linux installation with kdevelop, look at 
the /usr/share/apps/kdevdocumentation/tocs/php.toc file).

I just wanted to update the doc link, but the new page isn't in sync with the 
old with it's structure exactly.
Could you provide me a list of the nodes of the php doc, or do I have to parse 
the html file (http://www.php.net/manual/en/index.php -> browser html output) 
to convert it to a .toc file?

Thank you,
Chris

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: PHP documentation parsing?

2008-07-18 Thread Christian A. Reiter
Am Freitag, 18. Juli 2008 13:03:43 schrieb M. Sokolewicz:
> This is more of a question for the PHP Documentation Mailinglist than
> for php-general, so I'm cc'ing it there.
>
> Could you perhaps put up such a toc file somewhere online, so we could
> take a look at what it actually looks like, for those of us not having
> access to a kdevelop installation.
>
> Also, the php documentation on that homepage, was it just the XML-source
> ? or the rendered html output? I'm having a bit of a hard time figuring
> that out from your mail.
>
> - Tul


Hi,
Sorry for "spamming", but i got a error reply from sending this to 
[EMAIL PROTECTED]

here is the content of the php.toc file: http://paste.ubuntu.com/28269/

I don't know exactly how the old documentation looked like (because I never 
saw it online) - but what I can read out of the .toc file the structure was 
quite the same as the one on your php.net page.

The toc file describes just URLs; 
- one base URL (in your case "www.php.net/manual/en") 
- all other xml nodes are titles and relative paths.

I replaced the line
   http://epoxy.mrs.umn.edu/doc/python2.2-doc/html"/>
with
   http://www.php.net/manual/en"/>

-> most of the documentation works  -  but not all of it, and some chapter 
numbers are wrong too.

So I ask you if there exists a possibility to get this documentation in a 
format that suites better than parsing the html file op php.net ;-)

Thanks,
Chris

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php