More real-world XML

Dave Winer dave at userland.com
Fri Dec 17 18:48:28 GMT 1999


We've found another pragmatic use for XML.

On our Weblog Monitor site we allow people who have registered sites to specify how they'd like the sites to be categorized. This results in a hierarchy of categories and nodes. This hierarchy is browsable thru the web, and it's also mirrored in XML. The XML file is here:

http://static.userland.com/weblogMonitor/categories.xml

You can browse the structure thru HTML here:

http://subhonker2.userland.com/weblogMonitor/categories/

If you register a weblog, you enter the Categories string on your Prefs page:

http://subhonker2.userland.com/weblogMonitor/prefs/

The levels are slash-delimited, you can specify as many paths as you want, they're comma-separated. 

Here's the categories string I entered for Scripting News:

/computers/software/scripting,/culture/web,/humor,/Geography/USA/California

The structure evolves in real-time, if a member changes his or her listing so that a category is emptied, it's no longer in the structure.

A Frontier script that reads the XML into an outline.

http://samples.userland.com/discuss/enclosures/view$64

A screen shot of the outline:

http://www.outliners.com/images/frontier6/weblogMonitorCategoriesOutline.gif

Dave Winer





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ic.ac.uk/pipermail/xml-dev/attachments/19991217/9f4e2582/attachment.htm


More information about the Xml-dev mailing list