You might find some clues here - this is taken from Mike Alsup's most
excellent taconite plugin (http://www.malsup.com/jquery/taconite/):

    if (typeof xml == 'string')
        xml = $.taconite.convert(xml);



// convert string to xml document
$.taconite.convert = function(s) {
    var doc;
    $.taconite.log('attempting string to document conversion');
    try {
        if (window.ActiveXObject) {
            doc = new ActiveXObject('Microsoft.XMLDOM');
            doc.async = 'false';
            doc.loadXML(s);
        }
        else {
            var parser = new DOMParser();
            doc = parser.parseFromString(s, 'text/xml');
        }
    }
    catch(e) {
        if (window.console && window.console.error)
            window.console.error('[taconite] ERROR parsing XML string for
conversion: ' + e);
        throw e;
    }
    var ok = doc && doc.documentElement && doc.documentElement.tagName !=
'parsererror';
    $.taconite.log('conversion ', ok ? 'successful!' : 'FAILED');
    return doc;
};



Dmitrii  wrote:
> 
> Anyone? Help! :)
> 
> Dmitrii 'Mamut' Dimandt wrote:
>> Yup. This works under FF and Opera. Under IE this fails. The returned
>> data is of type object the is not enumerable (hence I cannot see it's
>> properties using, for instance, DP_Dump).
>>
>> :(
>>
>> Benjamin Sterling wrote:
>>> I would use the $.ajax function and set the dateType to xml.
>>>
>>>
>>> -- 
>>> Benjamin Sterling
>>> http://www.KenzoMedia.com
>>> http://www.KenzoHosting.com <http://www.KenzoHosting.com>
>>> ------------------------------------------------------------------------
>>>
>>> _______________________________________________
>>> jQuery mailing list
>>> discuss@jquery.com
>>> http://jquery.com/discuss/
>>>   
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> jQuery mailing list
>> discuss@jquery.com
>> http://jquery.com/discuss/
>>   
> 
> 
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Local-XML-tf3380874.html#a9479269
Sent from the JQuery mailing list archive at Nabble.com.


_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to