This example shows how to create a feed from an XML file containing names and addresses of national parks.
Before you begin
Estimated time to create this example feed
: 5 minutes
About this task
The National Park XML Feed
is available in the catalog when you install Mashup Center. You can compare the results of the feed you are working on to the completed feed in the catalog. To view the example, select the National Park XML Feed
from the catalog. Select View Feed in Browser
to see the results.
- Connection to the Internet
- Supported browser
- Internet Explorer 6.0 SP3, 7.0, 8.0 (Windows® only)
- Mozilla Firefox 3.6 (Windows and Linux®)
- Safari 5.0 (Mac OS only)
- For the most current information about system configuration, consult the Detailed System Requirements for IBM® Mashup Center.
- Logged in to Mashup Center
The sample NationalParkAddresses.xml file provides a list of eight National Park addresses in the United States. Each entry in the file contains these elements:
- Park name
- Zip code
1. Download the sample XML file to your local file system: NationalParkAddresses.xml
When downloading an XML file you may need to right-click the link and select Save Link As
to save the file as an XML file, instead of viewing the file contents in the browser.
2. On the Home:Catalog
page, click Create
and select New Feed
3. From the Select the feed data source
window, select XML Document
from the departmental
section. Click Next
4. From the Please upload a generic XML file
- Input type: Upload File
- Filepath: Click Browse and select the NationalParkAddresses.xml file you downloaded.
- Click Next.
5. To save the feed, type these values and then click Finish
- Title: My National Park XML Feed
- Description: XML file containing national park addresses
- Version: 1.0
- Tags: XML, National Park
- Permissions: Public
6. From the Feed successfully Saved
window, select View Feed in a Table Widget
The Preview Feed
window opens. Compare the results in this window to the output when the View Feed in a Table Widget
link is selected from the existing National Park XML Feed. The output contains eight items.
The XML file has now been converted to an Atom feed.