XQuery document function tutorial
OPML file generation from XHTML source document usage example

## Example

The demo retrieve a HTML pages containing attendees or bloggers listings and convert them to OPML. The conversion is done with XQuery and user-defined XPath functions to resolve the feeds URLs.

The demo also retrieve few OPML files and re-construct them having the feeds URLs if they are missing.

When setting the initial state, the demo starts to retrieve pages from the different sites. It could take a long time depending on the Internet connection of the machine that Virtuoso is running on. It is safe to leave the pop-up open without waiting it to finish and press on the "Run" links, however if this is the first time you run the initial state, the demo will show only partial results. Once the feeds are resolved they will be cached locally in a database table and the generated OPML files will be stored as a WebDAV resources.

The following are source references used in the demo:

- http://wiki.techcrunch.com/third_meetup
- http://news.com.com/html/ne/blogs/CNETNewsBlog100.opml
- http://conferences.oreillynet.com/pub/w/23/speakers.html
- http://conferences.oreillynet.com/pub/w/38/speakers.html
- http://www.alwayson-network.com/comments.php?id=10852_0_11_0_C
- http://www.gnomedex.com/holdings/br_2005%20Gnomedexers.opml
- http://www.web2con.com/pub/w/40/speakers.html
- http://www.thenewpr.com/wiki/pmwiki.php?pagename=Resources.CEOBlogsList
- http://nwr.cowblock.net/index.php?action=list
- http://okrasoup.typepad.com/black_looks/2005/05/naija_blogs.html
- http://allafrica.com/afdb/blogs/blogafrica.opml