The colon in an xml tag signifies a namespace. "openSearch" would be
the namespace prefix
and all tags in the document with that prefix are in that namespace.
If you look at the root element it declares the namespace:
xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/"
Note that the URL there is just being used as a URI... a unique identifier for
the
namespace. Giving it the prefix allows you to use the prefix in the tags instead
of having
to stick that whole URI in every tag in the namespace.
I don''t know anything about feedtools, but hopefully it has some
facility for dealing with
namespaces... Any decent XML library should.
b
Alan Bullock wrote:> http://www.mozdex.com/open.jsp?query=webhosting&start=10
>
> in the above feed, can anyone tell me how to access the
> openSearch:totalResults element using feed tools? I can access the other
> elements, but I''m unsure what special meaning the colon carries or
how to
> work with such items in feedtools
>
> thanks in advance
> al
>
>
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails