Search DominoPower's 11,433 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
INTERNET TECHNOLOGIES
Parsing XML with LotusScript and Microsoft's XML object
By Mark Lawson

These days, XML is a hot topic and, almost daily, people are finding interesting new ways to apply the technology. It seems, however, that as soon as you want to experiment with this format you find yourself steered firmly towards Java.

I wanted to use LotusScript, if possible, to include some XML headline channels on our Web site. This article, while not intended as an in-depth tutorial on XML (Extensible Markup Language) or XSL (Extensible Stylesheet Language), shows how, with some LotusScript and the free Microsoft XML object (MSXML), you can download, parse, and format XML documents easily, either by tree-walking or using XSL patterns in a style-sheet.

XML headline structure
Headline files are published as channels for inclusion in 'personalized' sites such as My.Netscape or My.Userland and typically contain news items with a link to the full story. You can, however, get the files themselves; a great starting point for exploring XML since most of them use the same de-facto format, Netscape's RDF. Here is a partial example from a recent DominoPower XML file (these are updated daily):

<rdf:RDF>
<?xml version="1.0" ?>

<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; xmlns="http://my.netscape.com/rdf/simple/0.9/";>
<channel>
<title>DominoPower News Center</title>
<link>http://www.dominopower.com/news/news.html<;/link>
<description>DominoPower News Center</description>
</channel>

<image>
<title>DominoPower Magazine</title>
<url>http://www.dominopower.com/images/DominoPowerRSSLogo.gif<;/url>
<link>http://www.dominopower.com/<;/link>
</image>

<item>
<title>Battle against piracy</title>
<link>http://www.dominopower.com/news/news.html<;/link>
</item>

<item>
<title>SmartSuite review</title>
<link>http://www.dominopower.com/news/news.html<;/link>
</item>

As you can see, headlines have the typical XML tree structure; just think "categorized view". A Notes view can be formed from the root (rdf:RDF in this case) and each twisty can be formed from a child node which, in turn, can contain other twisties/child nodes and so on. At the end of each branch is the column value. Given this format, what I needed was an agent that could download this sort of file every few hours, parse out the headlines, and create an HTML table I could insert into our site. First, though, I needed MSXML on my machine.


1  ·  2  ·  3  ·  Next »
Other articles you might like
Home > Internet Technologies > XML (11 articles)
   How to create a Web service to extract data from XML documents
   Building an XML based Content Management System using Lotus Domino: wrapping it up
   Building an XML based Content Management System using Lotus Domino: overview of the content administration system
Home > Microsoft Technologies (30 articles)
   Making Domino work with IIS
   Preparing for the impending IE7 release
   How to create animated, context sensitive help for the Notes client
Home > Internet Technologies > RSS and blogging (11 articles)
   Integrating AJAX and RSS into Domino applications
   Introducing the DominoPower RSS feeds
   Bridging the communications gap with RSS
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Latest Lotus Headlines
Remember Young Admins...there are 2 files
WebSphere Portal 6.1.0.2 and Lotus Domino 8.5
The CKEditor - with Domino
How not to crash in LotusScript
IBM Lotus to Google Apps Migration Remorse
Webcast Series: Mobile Collaboration with Lotus Software
Domino Login Control for Mobile Apps
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- Advertisement --

Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.

The many included activities and demos will make you a pro! Expert instructor help is a click away.

Click here to try a FREE demo course!!

-- Advertisement --

Struggling with exporting Notes data to spreadsheets? No More!
Try IntelliPRINT, The world's leading Reporting, Dashboards, and Analysis solution for Notes & Domino

  • Don't spend unproductive time maintaining different versions of the same spreadsheet
  • Preserve data integrity and security in multi-user environments
  • Create reports in minutes INSIDE Notes
  • Get freedom from iterative report requests, deliver self-serve capabilities

Experience Reporting, Dashboards, and Analysis INSIDE Notes.

Try IntelliPRINT NOW!

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login