BBC BASIC for Windows
« New XMLLIB library »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 11:28pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: New XMLLIB library  (Read 622 times)
admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx New XMLLIB library
« Thread started on: Jul 12th, 2009, 4:52pm »

I have developed a new library, XMLLIB:

http://groups.yahoo.com/group/bb4w/files/Libraries/XMLLIB.BBC

This is a simple XML file parser, suitable for tasks such as extracting data from an RSS feed. It is based on a PHP version which I found, but has been considerably enhanced compared with the original.

The PHP original is Object Oriented and I've tried to retain as much of the OOP structure as is practical in BBC BASIC, therefore XMLLIB may be of particular interest to those interested in OOP (and may horrify those who aren't!).

XMLLIB is not intended to be a fully-fledged XML parser; for that you should consider using Microsoft's MSXML COM interface.

I've written three programs to illustrate the use of the library; all require you to download XMLLIB.BBC to your BB4W LIB folder first:

http://groups.yahoo.com/group/bb4w/files/Graphics/banner_array_rss.bbc

This is yet another version of the banner program; this time it uses *genuine* RSS news feeds from the BBC - no cheating!

http://groups.yahoo.com/group/bb4w/files/Miscellaneous/xmllist.bbc

This program displays an XML file with tag colouring and automatic indentation (for demo purposes it uses the BBC newsfeed as its source).

http://groups.yahoo.com/group/bb4w/files/WindowsAPI/xml2tree.bbc

This program displays the hierarchy of an XML file as a tree view, and allows you to display the text content by clicking on a node (again it uses the BBC RSS file as a demo).

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls