Hi,

I'm trying to extend the Atom1Feed in the Syndication Framework to
print out a list of names stored within Django, similar to the way
GData and OData work.

I would like to know how to display attributes within an XML tag. So,
for example:
<entity>
<name>Scott W</name>
<data type="emailAddress">s...@...</data>
<data type="phoneNumber">555-4341</data>
</entity>

I also want the possibility for multiple data tags, including multiple
emailAddress/phoneNumber attributes within a single entity (but
separate <data> tags).

I'm attempting to use item_extra_kwargs(self, item) to do this but I'm
having no luck so far; documentation across the Internet is quite
sparse regarding custom feed generators. Should I possibly be
overriding the write() and writeString() methods?

The reason I want to use a generic <data> tag is because I want this
system to handle many different types of data, some of which I cannot
foresee, and want to avoid adding a huge amount of tags, if possible.

Thanks in advance,
Scott W

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to