[redland-dev] Parsing an atom file (pls give me a small help)

Diluka Moratuwage diluka at wso2.com
Fri May 18 05:30:53 BST 2007


Hi,
 I'm a very new person to xml, rss, atom and so on. I used the raptor 
library to parse an atom file,
and i used the "rss-tag-soup" parser. The parser could parse the file 
without any error.

 But the problem i'm having is that i don't know how to use the methods 
available to access the
values.

 What i mean is that, say this is my atom file (atom.xml)

<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">

 <title>Example Feed</title>
 <link href="http://example.org/"/>
 <updated>2003-12-13T18:30:02Z</updated>
 <author>
   <name>John Doe</name>
 </author>
 <id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id>

 <entry>
   <title>Atom-Powered Robots Run Amok</title>
   <link href="http://example.org/2003/12/13/atom03"/>
   <id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id>
   <updated>2003-12-13T18:30:02Z</updated>
   <summary>Some text.</summary>
 </entry>
</feed>



 I don't know how to get the values from the parsed atom file, as an 
example, how can i get the
title?? I don't know how to get the value of the <title> element.

 I think u all can understand my problem. Pls give me some small help so 
that i can
work and get through my problem.

 I'm very greatful, if  u have any sample program, that shows how this 
job is done.

Thanks,
Diluka.










More information about the redland-dev mailing list