Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7724505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:42:23+00:00 2026-06-01T04:42:23+00:00

I am loading an XML file using jQuery $.get. after loading the content, i

  • 0

I am loading an XML file using jQuery $.get. after loading the content, i can manipulate it and append the xml nodes to my own elements using .append().
this works on chrome and firefox, but not on IE8.

example of xml file:

<THEMES>
  <THEME id="city">
    <ASSETS ui="game/city">
        <ASSET package_id="title_screen"        file="title_screen.swf" />
        <ASSET package_id="backgrounds"          file="cartoon_buildings.swf" />
        <ASSET package_id="stand"                file="stand.swf" />
    </ASSETS>
  </THEME>  
</THEMES>

I need to detach all of the THEME nodes and attach them to my own object.

here is the essence of my code:

    var themes = $("<themes></themes>");
    $.get('url/themes.xml', function(data, textStatus, jqXHR) {
        var xml = data;         
        themes.append($(xml).children("themes").children('theme'));
    }, 'xml');

The error occurs on the themes.append line only on IE, and this is what the log shows:

No such interface supported

Can i not manipulate and append XML elements on IE?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T04:42:24+00:00Added an answer on June 1, 2026 at 4:42 am

    There are 2 issues:

    1. From the docs:

      Query( html [, ownerDocument] )
      html: A string of HTML to create on the fly. Note that this parses HTML, not XML.

    2. IE, following the DOM-specification, does not accept the moving of nodes between documents.

    This fixes both issues and works for me in IE too:

        //themes will be a jQuery-Object containing the documentElement
        var themes = $($.parseXML("<themes></themes>").getElementsByTagName('*')[0]);
    
        $.get('url/themes.xml', function(data, textStatus, jqXHR) {
            var xml = $($.parseXML(data));      
            themes.append(xml.children("themes").children('theme'));        
        }, 'text'
    );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After loading a PHP template (using jQuery's load function), this simple script won't make
I'm loading a XML file via Ajax using jQuery. For my tests, I use
I am trying to get Chinese text using XML file. it's loading text BUT
While loading an XML file in SSIS using an XML source component , i
I have a flash file that is loading data from XML file. After I
I was previously loading an XML file by using: XDocument doc = XDocument.Load(File.xml); Visit(doc.Root);
I'm having a problem loading my xml file using simplexml_load_file(), would really appreciate some
I'm loading icons from an XML file in to an NSMutableArray using the following:
I'm loading data into a DataSet from an XML file using the ReadXml method.
I'm loading properties attributes from a .properties file using Spring as follows: file: elements.properties

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.