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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:38:11+00:00 2026-05-18T11:38:11+00:00

can anyone Show me example to put the XML data in a HTML table

  • 0

can anyone Show me example to put the XML data in a HTML table Using Prototype Table Sorter Class??

  • 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-05-18T11:38:12+00:00Added an answer on May 18, 2026 at 11:38 am

    Ok I at last comes up with the solution hope that will help also for people who need it in future use
    so just change the name of the XML At:

    xmlhttp.open("GET","[XML File and is path]",false);

    and then use the Loop data3 as you wanted in my case it was :

    var b= x[i].getElementsByTagName("bandwidth")[0].childNodes[0].nodeValue;
    if (b==0) b="unlimited";
    
    var type = x[i].getElementsByTagName("type")[0].childNodes[0].nodeValue+"-"+x[i].getElementsByTagName("wireless_type")[0].childNodes[0].nodeValue;
    
    data3[i]=
    {"Monthly_Charges": x[i].getElementsByTagName("charges")[0].childNodes[0].nodeValue, "Provider": x[i].getElementsByTagName("network")[0].childNodes[0].nodeValue, "Speed_(kbps)": x[i].getElementsByTagName("speed")[0].childNodes[0].nodeValue, "Bandwidth_(GB)": b, "Type": type, "Installation_charges": x[i].getElementsByTagName("install_charges")[0].childNodes[0].nodeValue}
    

    Because i was taking data about some internet packages and then putting it in the Array/Json notation to send it to the prototype table sorter class so you just have to edit this for your own use and data…!!

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
      <title>Prototype Table Sorter Class : XML</title>
      <meta name="keywords" content="javascript, prototype, prototype.js, table sorter, table sorter prototype" />
      <meta name="description" content="Demo of TableOrderer a table sorter class for prototype.js" />
    
      <script type="text/javascript" language="JavaScript" src="js/prototype.js"></script>
    
      <script type="text/javascript" language="JavaScript" src="js/table_orderer.js"></script>
    
      <link rel="stylesheet" href="css/screen.css" type="text/css" media="screen" />
      <link rel="stylesheet" href="css/tableorderer.css" type="text/css" media="screen" />
    <script type="text/javascript" language="JavaScript">
     // var sess=document.getElementById("sess").value;
    if(window.ActiveXObject)
      {// code for IE6, IE5
      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    else if (window.XMLHttpRequest)
      {// code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp=new XMLHttpRequest();
      }
    xmlhttp.open("GET","xml/zczc@hotmail.com_internet.xml",false);
    xmlhttp.send();
    xmlDoc=xmlhttp.responseXML;
    
    var x=xmlDoc.getElementsByTagName("Results");
    var charg= x[0].getElementsByTagName("charges")[0].childNodes[0].nodeValue;
    
    //alert(8);
    
    
    
    var data3 = new Array(x.lengths);
    for(i=0; i<x.length;i++)
    {
    var b= x[i].getElementsByTagName("bandwidth")[0].childNodes[0].nodeValue;
    if (b==0) b="unlimited";
    
    var type = x[i].getElementsByTagName("type")[0].childNodes[0].nodeValue+"-"+x[i].getElementsByTagName("wireless_type")[0].childNodes[0].nodeValue;
    
    data3[i]=
    {"Monthly_Charges": x[i].getElementsByTagName("charges")[0].childNodes[0].nodeValue, "Provider": x[i].getElementsByTagName("network")[0].childNodes[0].nodeValue, "Speed_(kbps)": x[i].getElementsByTagName("speed")[0].childNodes[0].nodeValue, "Bandwidth_(GB)": b, "Type": type, "Installation_charges": x[i].getElementsByTagName("install_charges")[0].childNodes[0].nodeValue}
    }
    </script>
    </head>
    <body>
    <div id="container3"></div>
    
    <script>
    new TableOrderer('container3',{data : data3,allowMultiselect : false,search: true,paginate : true,pageCount : 15});
    </script>
    
    
    </body>
    </html>
    

    for Table Sorting Class of Prototype you can log on to : http://prototools.negko.com/demo/tableorderer/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can anyone show how to correctly convert binary represented data into double value in
Can anyone give me an idea how can we show or embed a YouTube
Can anyone recommend a good binary XML format? It's for a JavaME application, so
Can anyone give me the example code that I can use to first present
Can anyone (maybe an XSL-fan?) help me find any advantages with handling presentation of
Can anyone tell me how I can display a status message like 12 seconds
Can anyone recommend a good library for generating an audio file, such as mp3,
Can anyone recommend some good resources that highlight the differences between Oracle and the
Can anyone point me to a good resource (or throw me a clue) to
Can anyone recommend software or a .NET library that will check for bounced emails

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.