Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jan 2009
    Posts
    48
    Thanks
    28
    Thanked 0 Times in 0 Posts

    searching through a text document "search engine"

    Hi,

    I just wanted to know if I have a text document that contains html code,
    how would I search through the code and retrieve all the data related to the search. i.e. by creating a search engine.

    The problem I face is if the format of the tag names change in the html txt document then it won't work. Therfore using DOM to retrieve the text would fail.

    Is there anything other than DOM that I can use to parse through the text document, so even if the code changed the search engine would still work.

    The aim is to search through a html "text document" and retrieve the data that the user wants.

    thanks in advance

  • #2
    Regular Coder student101's Avatar
    Join Date
    Nov 2007
    Posts
    634
    Thanks
    80
    Thanked 15 Times in 15 Posts
    Not sure I understand the question...
    You want to search html coded HTML files or plain text files?
    Thanks for your support!
    Update MySQL with checkboxes | Tell A Friend | Delete MySQL with checkboxes

    Give thanks & resolve when done :thumbsup:


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •