[Catalyst] redundant namespace declarations with Catalyst::View::Atom::XML
John Napiorkowski
jjn1056 at yahoo.com
Sun Sep 3 00:36:40 CEST 2006
Hi,
I'm using the Catalyst::View::Atom::XML module and
getting a lot of extra namespace declarations in my
feeds. Here is what I mean:
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://purl.org/atom/ns#">
<title
xmlns="http://purl.org/atom/ns#">feedrolls/all</title>
<id
xmlns="http://purl.org/atom/ns#">http://ubuntu:8091/feedrolls</id>
<summary xmlns="http://purl.org/atom/ns#">Rolls of
External Feeds</summary>
<modified
xmlns="http://purl.org/atom/ns#">2006-09-02T22:31:12Z</modified>
<link xmlns="http://purl.org/atom/ns#"
type="application/xml+atom" rel="self"
href="http://ubuntu:8091/feedrolls"/>
<entry xmlns="http://purl.org/atom/ns#">
<link xmlns="http://purl.org/atom/ns#"
type="application/xml+atom" rel="edit"
href="http://ubuntu:8091/feedrolls"/>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link xmlns="http://purl.org/atom/ns#"
type="application/xml+atom" rel="edit"
href="http://ubuntu:8091/feedrolls"/>
</entry>
</feed>
I'm not sure why I am getting all the repeated
'xmlns="http://purl.org/atom/ns#' attributes attached
to every element. I am using the force to Version 1.0
option and have downloaded the latest XML::ATOM
modules. Here' is an example of the code I have that
is causing this:
[.. Standard Catalyst Controller header ..]
use XML::Atom;
use XML::Atom::Feed;
use XML::Atom::Entry;
$XML::Atom::DefaultVersion = "1.0";
sub feedrolls :Local
{
[.. stuff removed for clarity ..]
my $xml_atom_object :Stashed =
XML::Atom::Feed->new();
$xml_atom_object->title($c->action);
}
I also tried the "Verson=>1.0" directly in the new
method but this didn't make the behavior go away.
Are other people using this module and are they
getting this problem?
--john
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Catalyst
mailing list