Skip Menu |

This queue is for tickets about the XML-Atom CPAN distribution.

Report information
The Basics
Id: 29815
Status: open
Priority: 0/
Queue: XML-Atom

People
Owner: Nobody in particular
Requestors: anonymous [...] remailer.metacolo.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: need for an XML::Atom::Source
Date: Sun, 7 Oct 2007 06:37:57 +0000 (UTC)
To: bug-XML-Atom [...] rt.cpan.org
From: Anonymous Sender <anonymous [...] remailer.metacolo.com>
the source for an entry is currently assumed to be a simple string, but the spec allows for child elements. see http://www.atomenabled.org/developers/syndication/atom-format-spec.php#element.$ also, it would be useful if there was a find() utility function similar to XML::Atom::Base::get so as to extract arbitrary elements/values via xpath with a supplied namespace.
Subject: Re: [rt.cpan.org #29815] need for an XML::Atom::Source
Date: Sat, 6 Oct 2007 23:51:31 -0700
To: bug-XML-Atom [...] rt.cpan.org
From: "Tatsuhiko Miyagawa" <miyagawa [...] gmail.com>
I believe passing Atom::Entry or Atom::Feed to source, like $entry->source($another_entry) should just work. On 10/6/07, Anonymous Sender via RT <bug-XML-Atom@rt.cpan.org> wrote: Show quoted text
> > Sun Oct 07 02:38:19 2007: Request 29815 was acted upon. > Transaction: Ticket created by anonymous@remailer.metacolo.com > Queue: XML-Atom > Subject: need for an XML::Atom::Source > Broken in: (no value) > Severity: (no value) > Owner: Nobody > Requestors: anonymous@remailer.metacolo.com > Status: new > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=29815 > > > > the source for an entry is currently assumed to be a simple string, but the > spec allows for child elements. see > http://www.atomenabled.org/developers/syndication/atom-format-spec.php#element.$ > > also, it would be useful if there was a find() utility function similar to > XML::Atom::Base::get so as to extract arbitrary elements/values via xpath with > a supplied namespace. > >
-- Tatsuhiko Miyagawa
From: colossus.forbin [...] gmail.com
i guess i wasn't clear that i want to extract the child nodes from a parsed feed, and not construct a feed. my second paragraph hinted at that. if i'm parsing a feed which has the structure: feed/entry/source/id /title how do i get at the id element within the entry? also, any comment on the suggestion for a utility function for arbitrary xpath? the feed i'm parsing has attributes in their own namespace and there doesn't seem to be a good way of getting at them. an example is the previously mentioned 'id': feed/entry/source/id@origid On Sun Oct 07 02:51:52 2007, miyagawa@gmail.com wrote: Show quoted text
> I believe passing Atom::Entry or Atom::Feed to source, like > $entry->source($another_entry) should just work. >
> > the source for an entry is currently assumed to be a simple string,
> but the
> > spec allows for child elements. see > > http://www.atomenabled.org/developers/syndication/atom-format-
> spec.php#element.$
> > > > also, it would be useful if there was a find() utility function
> similar to
> > XML::Atom::Base::get so as to extract arbitrary elements/values via
> xpath with
> > a supplied namespace.
On Sun Oct 07 02:51:52 2007, miyagawa@gmail.com wrote: Show quoted text
> I believe passing Atom::Entry or Atom::Feed to source, like > $entry->source($another_entry) should just work.
I tried that and found that child elements that are not allowed in the source were also copied (entry elements from a feed or content from an entry). This suggests that you can't use a feed or entry that already exists. Instead, a new feed or entry will need to be constructed from the data and used explicitly. Is this the intent? Show quoted text
> On 10/6/07, Anonymous Sender via RT <bug-XML-Atom@rt.cpan.org> wrote:
> > > > Sun Oct 07 02:38:19 2007: Request 29815 was acted upon. > > Transaction: Ticket created by anonymous@remailer.metacolo.com > > Queue: XML-Atom > > Subject: need for an XML::Atom::Source > > Broken in: (no value) > > Severity: (no value) > > Owner: Nobody > > Requestors: anonymous@remailer.metacolo.com > > Status: new > > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=29815 > > > > > > > the source for an entry is currently assumed to be a simple string,
> but the
> > spec allows for child elements. see > > http://www.atomenabled.org/developers/syndication/atom-format-
> spec.php#element.$
> > > > also, it would be useful if there was a find() utility function
> similar to
> > XML::Atom::Base::get so as to extract arbitrary elements/values via
> xpath with
> > a supplied namespace. > > > >
> >