Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / XML / January 2008

Tip: Looking for answers? Try searching our database.

About xml namespace.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vishy - 31 Jan 2008 04:25 GMT
Hi,

   I am new to this xml specifically saying Atom syndication, and
getting confusion with the URL used in the namespace. What it
signifies?

  I tried copying the URL into address bar, its giving page not
found.

  I am using the xml content like below for posting a photo to picasa
web album.

<entry xmlns="http://www.w3.org/2005/Atom">
               <title>example.jpg</title>
               <category scheme="http://schemas.google.com/g/
2005#kind"  term="http://schemas.google.com/photos/2007#photo" />
 </entry>

i tried changing 2005 from "http://www.w3.org/2005/Atom" to 2004, it
gave the bad request  and error was "Invalid kind on entry".

Please let me know ASAP.

Regards
Vishwanath
Sergey Zyuzin - 31 Jan 2008 09:00 GMT
> Hi,
>
[quoted text clipped - 21 lines]
> Regards
> Vishwanath

Hi,

It signifies nothing. It's just a convention to name namespaces so
their names are unique.

Thanks,
Sergey
Martin Honnen - 31 Jan 2008 13:01 GMT
>     I am new to this xml specifically saying Atom syndication, and
> getting confusion with the URL used in the namespace. What it
> signifies?
>
>    I tried copying the URL into address bar, its giving page not
> found.

When I load <URL:http://www.w3.org/2005/Atom> into a browser I get a
page explaining
 "Atom Syndication Format namespace

The namespace name http://www.w3.org/2005/Atom is intended for use as
per The Atom Syndication Format, a December 2005 Proposed Standard
developed by the IETF atompub Working Group."

so I don't understand why you say you get a "page not found".

But generally a URL used as a namespace name does not need to point to a
resource, it is just a unique name to identify element and/or attribute
names.

>    I am using the xml content like below for posting a photo to picasa
> web album.
[quoted text clipped - 7 lines]
> i tried changing 2005 from "http://www.w3.org/2005/Atom" to 2004, it
> gave the bad request  and error was "Invalid kind on entry".

The Atom 1.0 syndication format specification is here:
<URL:http://tools.ietf.org/html/rfc4287>, it defines that the namespace
to be used is http://www.w3.org/2005/Atom so you should use that if you
want to build an Atom feed.
I am not sure why you want to use a different year in the name, a feed
reader will not understand names in the namespace
http://www.w3.org/2004/Atom.

Signature

    Martin Honnen --- MVP XML
    http://JavaScript.FAQTs.com/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.