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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:02:37+00:00 2026-05-14T06:02:37+00:00

I am parsing the html file to extract tabular information through column names. And

  • 0

I am parsing the html file to extract tabular information through column names. And I want like let user give the input for column name. And according to that column names tabular information will be extracted.

Now that column names which user will input,based on that column names I want to find the tabular information from the html file.

But where I should store this column names input by user ? And how to retrieve them ? I dont want to use database.

EDIT : How can we store data in xml file and how can we retrieve data from it and how can we update the xml file for storing data ? Like I have 3 column names Name, Address,Phone no and for that user will input possible column names like Nm,Add,PhNo. and Nam,Addre,PhoNo and so on.

  • 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-14T06:02:38+00:00Added an answer on May 14, 2026 at 6:02 am

    Lots of people have been talking about XML, it’s a good idea. However, if Linq is available for you, you shoudl really consider using Linq to XML instead of SAX/DOM parsing.

    Linq to XML makes it easier to parse, create and edit XML file compared to SAX and DOM parser. Using SAX/DOM parsing usually requires a lot of loops to get to the correct element or to navigate trough the nodes.

    Example taken from MSDN :
    Using DOM Parsing :

    XmlDocument doc = new XmlDocument();
    XmlElement name = doc.CreateElement("Name");
    name.InnerText = "Patrick Hines";
    XmlElement phone1 = doc.CreateElement("Phone");
    phone1.SetAttribute("Type", "Home");
    phone1.InnerText = "206-555-0144";        
    XmlElement phone2 = doc.CreateElement("Phone");
    phone2.SetAttribute("Type", "Work");
    phone2.InnerText = "425-555-0145";        
    XmlElement street1 = doc.CreateElement("Street1");        
    street1.InnerText = "123 Main St";
    XmlElement city = doc.CreateElement("City");
    city.InnerText = "Mercer Island";
    XmlElement state = doc.CreateElement("State");
    state.InnerText = "WA";
    XmlElement postal = doc.CreateElement("Postal");
    postal.InnerText = "68042";
    XmlElement address = doc.CreateElement("Address");
    address.AppendChild(street1);
    address.AppendChild(city);
    address.AppendChild(state);
    address.AppendChild(postal);
    XmlElement contact = doc.CreateElement("Contact");
    contact.AppendChild(name);
    contact.AppendChild(phone1);
    contact.AppendChild(phone2);
    contact.AppendChild(address);
    XmlElement contacts = doc.CreateElement("Contacts");
    contacts.AppendChild(contact);
    doc.AppendChild(contacts);
    

    Using Linq to XML :

    XElement contacts =
        new XElement("Contacts",
            new XElement("Contact",
                new XElement("Name", "Patrick Hines"),
                new XElement("Phone", "206-555-0144", 
                    new XAttribute("Type", "Home")),
                new XElement("phone", "425-555-0145",
                    new XAttribute("Type", "Work")),
                new XElement("Address",
                    new XElement("Street1", "123 Main St"),
                    new XElement("City", "Mercer Island"),
                    new XElement("State", "WA"),
                    new XElement("Postal", "68042")
                )
            )
        );
    

    Easier to do and much more clear.

    Edit:
    Save the XML tree to contacts.xml :

    // using the code above
    contact.Save("contacts.xml");
    

    Load the contacts.xml file :

    //using the code above
    XDocument contactDoc = XDocument.Load("contacts.xml"); 
    

    To update an element of the tree there is a few functions in the doc that can do it depending on what you want to do

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

Sidebar

Related Questions

I am parsing the tabular information from the html file with the help of
I am parsing html file with the help of the html agility pack to
I want to parse the html file, pdf file, csv file and text file.Now
I'm trying to implement an HTML Parsing web service as described in Chapter 23
Can anyone recommend a C or Objective-C library for HTML parsing? It needs to
I'm interested in selectively parsing Mediawiki XML markup to generate a customized HTML page
Parsing a text file in vb.net and need to locate the latitude and longitude
I'm parsing text from a file and storing it in a string. The problem
I've been parsing through some log files and I've found that some of the
In ruby I am parsing a date in the following format: 24092008. I want

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.