On Mar 18, 2009, at 5:52 PM, David wrote:

For example, in FF, if a look for a tag, I have to write "ns\\:tag" ,
but if a look for an attribute I have to write "ns:attribute". In
google Chrome (WebKit), I have to write "tag" or "attribute" and it
works.

Has this problem been solved, or is there any plugin to deal with it?
It is veri tedious to code a parsing case for each browser (IE, FF,
Webkit, etc..)

AFAIK, this problem has not been solved yet, jQuery does not handle namespaces at all. The ns\\:field is more of a hack and does not work in IE when parsing to XML (through the AJAX option dataType: "xml").

What you might want to try is removing the dataType option (so that it is passed as a string), then replace the : character with something else (e.g. a dash). This way the XML parser will leave the namespaces alone.

Please note that I have not tried this, it's based on the things I have read about it.

Regards,
--
Martijn.

Reply via email to