[Simple-support] Duplicate element error parsing rss and atom
Brought to you by:
niallg
|
From: terry t. <tn...@na...> - 2013-08-28 08:07:22
|
this is a well designed api but i'm having what seems to be a common
problem deserializing xml that contains elements with the same name but
in different name spaces. the usual example is
<rss >
<channel>
...
<link>some value</link>
...
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom"
rel="self"
type="application/rss+xml"
href="http://feeds.feedburner.com/..."/>
the 'link' in <atom:link> collides with <link>
first question: is there any way to parse this with the current version
of simpleXml?
as no one that has asked this question has received an answer i'm
assuming there is no way to do it now. that leads to my second question:
how hard is this to support? is it something that an above average java
developer (that's me) could get done relatively quickly?
or is it a big design change to support these name space name collisions?
thanks,
terry
|