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 7891751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T06:41:50+00:00 2026-06-03T06:41:50+00:00

I am trying to use the JsTree plugin to display the hierarchial tree. Right

  • 0

I am trying to use the JsTree plugin to display the hierarchial tree. Right now the tree is rendered properly only on Firefox browser, doesnot work in IE 8 or 9 or any other browser we tested. I am using the XML format of data internally and recently found the xml_data plugin is not recognized by IE9 ..

The other option is to use JSON to render the data, so wanted to know if it should work fine with JSON , if yes, is there a way I can convert the XML data directly to JSON format somehow?

Thanks in advance,

  • 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-03T06:41:52+00:00Added an answer on June 3, 2026 at 6:41 am

    Use dataType = text instead of xml in ajax call your problem will solved 🙂

    My Employees_xml_flat.xml file contains is as follows: you can add more nodes if you want

    <item id="19001" parent_id="0"   >  
                <content><name>Vaibhav</name></content>                
            </item>  
            <item id="19002" parent_id="19003"   >    
          <content><name>Pri_dev</name></content> 
          </item>
    

    See following sample code: This jsTree will work fine on IE, Mozila and Google chrome. Not tested on other browser

    Use jsTree

        $(document).ready(function(){
            $.ajax({
                type: "GET",
                url: "Employees_xml_flat.xml",
                dataType: "text",
                success: function(xmlData) {
                    $("#treeViewDiv").jstree({
                        "xml_data" : {
                            "data" : xmlData
                        },
                        "plugins" : [ "themes", "xml_data" ]
                    });
                }
            });
        });
    
    </script>
    </head>
    <body>
        <div id="treeViewDiv"></div>
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to use this jQuery plugin (jsTree) in one of my project.
I'm trying to use Json.NET to serialize and deserialze a tree structure for jsTree.
I am trying use Date Picker and on Select i want to display the
I'm trying use to selenium with firefox on CentOS from command line like this:
I am trying use Accrev plugin for visual studio 2010. I am not sure
I am trying use the jQuery table sorter plugin for a table that is
i'm trying use facebook API to upload photo in my fan page. I downloaded
I am trying use gem tire to search in my application. I have tables
I was trying use a set of filter functions to run the appropriate routine,
I'm trying use self-signed certificate (c#): X509Certificate2 cert = new X509Certificate2( Server.MapPath(~/App_Data/myhost.pfx), pass); on

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.