Subject: | XML-Atom-SimpleFeed - Content field (xml) |
Date: | Wed, 9 Oct 2013 11:13:32 +0200 |
To: | bug-xml-atom-simplefeed [...] rt.cpan.org |
From: | Jamal ZARIOUH <jzariouh [...] gmail.com> |
Hi,
First, thank you for your Perl API XML-Atom-SimpleFeed.
But, I need your help, I would like to create an entry with content tag, as
below:
*<?xml version="1.0" encoding="utf-8"?>*
*<feed xmlns="http://www.w3.org/2005/Atom">*
* <title>Mount existing DCFS share</title>*
* <updated>Date of last modification</updated>*
* <id>Generated by the librairy DATA::UID</id>*
* <generator>Server DB</generator>*
* <entry>*
* <title>Container name</title>*
* <id>event_uid stored in the database</id>*
* <published>Date of creation of the event</published>*
* **<content>*
* <?xml version="1.0" encoding="utf-8"?>*
* <nasfilesystem>*
* <name>Container name</name>*
* <mpoint>mount point</mpoint>*
* <sharename>provider1,provider2</sharename>*
* </nasfilesystem>*
* </content>*
* </entry>*
*</feed>*
*
*
Here is my Perl Code :
I have create a new instance. After I try to create the entry like this :
* $feed->add_entry(*
* title => $record->{NAME},*
* id => $record->{RSSEVENT_UID},*
* link => 'empty',*
* author => 'United Middleware',*
* updated => $dateW3CDTF ,*
* published => $dateW3CDTF ,*
* summary => 'MPoint: ' . $record->{MPOINT} . '. SHARE: ' .
$record->{SHARENAME},*
* content => nasfilesystem => {*
* name => 'Container Name',*
* mpoint => 'mount point',*
* sharename => 'the share name'*
* }*
* }*
* );*
But the code doesn't works fine.
Can you help me? and send me an example of code for set content tag value.
Best Regards,
Jamal Zariouh