http://www.perlmonks.org?node_id=370629

Hi folks. As my hack of the day I added an XML view to Selected Best Nodes, Best Nodes and Worst Nodes.

In order to see this view you need to view these nodes with the following param:

displaytype=xml
(or just use the xml link at the top of the page. :-) Optionally you can specify
xmlstyle=clean
to not have newlines added to the content of data bearing elements. This behaviour is in keeping with the other tickers and as such even though these are new that style is preserved. However like many of the recently modified tickers (not all yet) the "clean" mode resolves this issue.

I know there are some stats junkies out there. Please ensure that you do not fetch this data too often. No more than hourly is acceptable. If people dont respect that it will be taken away. (Sorry to be harsh, but I have to say that.)

Anyway, I hope this makes things a bit easier to supply this to external clients or what have you. Enjoy. :-)

Please consider the XML being output by this new feature to be BETA quality only. Its possible it will change pursuant to comments received. This doesnt mean you shouldnt exploit it, just that you shouldn't bitch if the XML format gets tweaked a bit over the next few days.

Also the observant will have notice that the XML view of user nodes now contains certain user settings. If you feel there is a good cause for more settings to be added please let the gods know which ones and why. (Preferably through a reply to this node, but a /msg will also do.)


---
demerphq

    First they ignore you, then they laugh at you, then they fight you, then you win.
    -- Gandhi


• Update:  
No longer is the passthrough setting required so I removed it, also added a note emphasizing that this initial release is beta quality in terms of the exact XML format being returned.