> 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
Results 1 to 2 of 2
Thread: Re: XML format
-
2004-08-21, 15:18 #1Harald WalkerGuest
Re: XML format
-
2004-08-22, 22:50 #2
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:
> slim
laylist
>
> 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
>
>
>
>

Reply With Quote


