[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [syndication] Re: Thoughts, questions, and issues.



Aaron Swartz wrote:
> 
> Jonathan Eisenzopf <eisen@pobox.com> wrote:
> 
> > The above is standard. If you're simply using the base RSS
> > elements, it doesn't change. So how does the use of namespaces
> > complicate things?
> 
> If you're not using the base RSS elements. The problem is that you've put a
> wall on the possibilities of non-namespace-aware parsers. They can now only
> do things that are in the spec. And since you guys aren't to big on adding
> to the spec, and rather shifting most of the burden onto modules, that's a
> rather large limit.
> 
I think people are placing too much emphasis on namespaces and
RDF. When working with a parser, whether it's a regex parser or
an XML parser w/out NS support, dealing with a namespace is only
a matter of looking for a string followed by a colon in the
element name. If you don't care about the namespace, you can
discard it. If you do, you can then reference that element to its
namespace somewhere in an associative array, struct, or object.

Perhaps we should post regexes that demonstrate this?

-- 
Jonathan Eisenzopf    |  http://motherofperl.com    
eisen@pobox.com       |  http://perlxml.com
Perl Hacker           |  http://dc.pm.org