Re: Need help with xml parser

Matthew Leingang <leingang-c2Vpf+SSmYbWs/[email protected]> Fri, 03 Oct 2003 07:57:24 -0400
Newsgroups gmane.comp.cms.phpslash.user
Organization Harvard University Department of Mathematics
Message-ID <[email protected]>
On Fri, 2003-10-03 at 03:40, Lars wrote:
> Hi,
> 
> I'm doing some work on the backend file to allow an xml feed. I need to add 
> the topic to this feed, but I cannot find out how to do this. Could anyone 
> help me with this ?
> 
> Cheers,
> 
> Lars

What do you mean by "how to do this"?  Backend.php3 uses the
Story_base::extractStories function, which returns a list of story
hashes.  The  "topic_name_ary"-th element in each story hash is an array
of topic names to which the story belongs.  There is also a
"topic_id_ary" key in the array if you want it.  That's how you can get
topic data.

If you're asking how to package it in an XML feed, what about the Dublin
Core "subject" field?

http://dublincore.org/documents/dces/#subject


HTH,
Matt

-- 
Matthew Leingang
Harvard University Department of Mathematics
leingang-c2Vpf+SSmYbWs/[email protected]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf