Support Requests: Browse | Submit New | Admin

[#7478] adding xml namespace attributes to feed or entry (atom feed generation).

Date:
2006-12-28 08:21
Priority:
3
Submitted By:
Nobody
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
adding xml namespace attributes to feed or entry (atom feed generation).

Detailed description
The only way that I know of to add a custom xmlns (eg. dc:xmlns="http://dcnamepsace.com") to the Atom XML
feed is to create a hackish xml_builder to be passed to the build_xml method.

class MyBuilder < Builder:XmlMarkup
  def feed(*args, &block)
    myhash = {}
    # add stuff to myhash
    self.method_missing("feed", myhash, &block)
  end
end

There should be a better way, plz. :)

Add A Comment: Notepad

Please login


Followup

Message
Date: 2007-04-21 20:14
Sender: Bob Aman

You're right, there should be.  I'm open to suggestions.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item