Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 2 of 2

Thread: Re: XML format

  1. #1
    Harald Walker
    Guest

    Re: XML format

    > We can remove that if it's a problem, but I'd like to understand why
    > it's failing. Anybody know?



    I have done some more reading and testing.

    What I have seen in Mozilla and the old Safari is, that the namespace
    definition does not seem to have any effect.

    Safari 2.0 (Tiger) behaves different then the old 1.2.3. So either it is
    a bug or they changed the implemetation.

    Dave Hyatt writes in his weblog:
    Some time ago we switched over to libxml in Safari for the processing of
    XML (and XHTML) files.

    So the question would be, how do you approach tags belonging to a
    certain namespace?
    normal method looks like: responseXML.getElementsByTagName("playlist")

    If you use a namespace prefix (eg. xmlns:slim="http://...") it would
    probably look like:
    slimlaylist

    To be able to differentiate between an iTunes playlist and a SlimServer
    playlist is in the end the reason to use a namespace.

    some of the website I have visited 2nite:
    http://www.jclark.com/xml/xmlns.htm
    http://weblogs.mozillazine.org/hyatt...s/2004_08.html
    http://developer.apple.com/documenta...LGlossary.html

    Regards,

    Harald

  2. #2
    Gadfly, Former Founder Slim Devices dean's Avatar
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    4,427

    Re: Re: XML format

    Harald,

    Did you confirm that it works with a namespace prefix on Safari 2.0?

    -dean

    On Aug 21, 2004, at 3:18 PM, Harald Walker wrote:

    >> We can remove that if it's a problem, but I'd like to understand why
    >> it's failing. Anybody know?

    >
    >
    > I have done some more reading and testing.
    >
    > What I have seen in Mozilla and the old Safari is, that the namespace
    > definition does not seem to have any effect.
    >
    > Safari 2.0 (Tiger) behaves different then the old 1.2.3. So either it
    > is a bug or they changed the implemetation.
    >
    > Dave Hyatt writes in his weblog:
    > Some time ago we switched over to libxml in Safari for the processing
    > of XML (and XHTML) files.
    >
    > So the question would be, how do you approach tags belonging to a
    > certain namespace?
    > normal method looks like: responseXML.getElementsByTagName("playlist")
    >
    > If you use a namespace prefix (eg. xmlns:slim="http://...") it would
    > probably look like:
    > slimlaylist
    >
    > To be able to differentiate between an iTunes playlist and a
    > SlimServer playlist is in the end the reason to use a namespace.
    >
    > some of the website I have visited 2nite:
    > http://www.jclark.com/xml/xmlns.htm
    > http://weblogs.mozillazine.org/hyatt...s/2004_08.html
    > http://developer.apple.com/documenta...al/XMLParsing/
    > Articles/XMLGlossary.html
    >
    > Regards,
    >
    > Harald
    >
    >
    >
    >

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •