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

  • Home
  • SEARCH
  • 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 6921325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T10:15:46+00:00 2026-05-27T10:15:46+00:00

Below is my HTML <table width=100%> <tr><td><center><b>Browse your XML File below.</b></td></center> </tr> <tr><td><center><input type=file

  • 0

Below is my HTML

<table width="100%">
 <tr><td><center><b>Browse your XML File below.</b></td></center>   </tr>
 <tr><td><center><input type="file" id="location"></center></td></tr>
 <tr><td><center><input type="button" id="load" value="Load XML"></center></td></tr>
</table>

Below is my Code which I am using to load XML

$('#load').bind('click',function()
{
var localfile = $('#location').val();
alert(localfile);
var xmlDoc;
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async = false;
xmlDoc.load(localfile);
if(xmlDoc.readyState == 4)
{
    alert("success"); // Till here this is executing fine...
    var readyXML = $.parseXML( xmlDoc );
    var xml = $(readyXML); 
    xml.find('Name').each(function()
        {
        alert($(this).text());
    });
}
});

It seems there is(are) mistake(s) in the code..

Please help me on this to correct the code..

  • 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-27T10:15:47+00:00Added an answer on May 27, 2026 at 10:15 am

    jQuery.parseXML takes a string as first argument. Have a look at the internals.

    xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
    xmlDoc.async = false;
    xmlDoc.load(localfile);
    jQuery(xmlDoc).find('Name').each(function() {
        alert($(this).text());
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a HTML table like the below; <table style=width: 100%> <tr> <td style=width:
I have below html code in my aspx. <input type=hidden id=medicalLink value='<a href=/forms/contactus.aspx >Contact
Here's a basic illustration of the problem: <html><head><style type=text/css> html {width: 100%; height: 100%;
Below is the code of a simple html with a table layout. In FF
Given the following html table and script shown below I am having a problem
Please check my HTML below: <table cellpadding=0 cellpadding=0 border=0> <tr> <td> <div class=toogler>Demo1</div> </td>
In the below HTML fragment, how can I make the width of a column
This is my html. The table below is inside a container div which has
I have an html table like below +-------+-------+-------+-------+-------+---------+---------+---------+---------+ | col1 | col2 | col3
Does anyone know why the input elements with a width of 100% go over

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.