473,386 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Html File Search

Hi All,

Can any one tell me how can I search an html file for tags and sort the by usage.

One more interesting thing is that I have prepared a file with all valid html tags.

How can I compare the tags in the input file with this file and say if the tags are valid?

Any Ideas?

Thanks,

G.
Sep 11 '07 #1
2 1778
gpraghuram
1,275 Expert 1GB
Hi All,

Can any one tell me how can I search an html file for tags and sort the by usage.

One more interesting thing is that I have prepared a file with all valid html tags.

How can I compare the tags in the input file with this file and say if the tags are valid?

Any Ideas?

Thanks,

G.
1)In a separate file have all the html tags and store this in a map or set.
2)First you shuld have a html reader may be in c++
3)Then read the html file and and as u encunter a tag search in the map/set and have a separate container which maintains count for each tag

Post again if u need more info

Raghuram
Sep 11 '07 #2
dmjpro
2,476 2GB
Hi All,

Can any one tell me how can I search an html file for tags and sort the by usage.

One more interesting thing is that I have prepared a file with all valid html tags.

How can I compare the tags in the input file with this file and say if the tags are valid?

Any Ideas?

Thanks,

G.
Welcome to TSDN.
Good idea.
Actually on which library of C or C++ you are working?
On that it depends.
If you have no library then you have write your own Code.
I think that would be very interesting.
Try to write your code, then come here with your specific problems.
You will really enjoy that Code Writings.
Good luck.

Kind regards,
Dmjpro.
Sep 11 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: SteveJ | last post by:
All, Can someone help me solve the next step. First of all let me say I'm new to php. I pieced the following code together from samples I found on the net and a book I bought called PHP...
1
by: Les Juby | last post by:
A year or two back I needed a search script to scan thru HTML files on a client site. Usual sorta thing. A quick search turned up a neat script that provided great search results. It was fast,...
1
by: Bart Van der Donck | last post by:
Jomo (jomo@dynamicdeveloper.co.uk) wrote: > How do I generate a request from an HTML search form > (or button/hyperlink) to search/query an XML data file, > using CGI scripts, and have the...
1
by: Al Wilkerson | last post by:
Hey, I have a Web Form with a drop down list, textbox, and search button. When click the search button an SQL server database is queried fordata. Once I have the data in a dataset I use the...
0
by: morty | last post by:
Hi All, I am wondering if anyone knows of an online search tool (or software to download) that can do the following? I need to search all html files in a web site directory (live on the Net) to...
13
by: Ray Muforosky | last post by:
Hello all: Task: I want to do file search, using the "conatining text" option from a web page. How do I search for a file on my local drive containing a certain string, from a web page. That...
4
by: zakhirn | last post by:
Hello, I have an extremely new user to XML and XSL, and I would like to know how to search XML data via a input form in HTML, and have the results displayed in HTML. If anyone has code that...
7
by: Xah Lee | last post by:
Summary: when encountering ex as a unit in css, FireFox (and iCab) did not take into account the font-family. Detail: http://xahlee.org/js/ff_pre_ex.html Xah xah@xahlee.org ∑...
17
by: =?Utf-8?B?Y2F0aGFyaW51cyB2YW4gZGVyIHdlcmY=?= | last post by:
Hello, I have build a website with approximately 30 html-pages. When I search this website in Google, I see the index.html or home.html on this website, but also other html-pages on this...
15
by: lxyone | last post by:
Using a flat file containing table names, fields, values whats the best way of creating html pages? I want control over the html pages ie 1. layout 2. what data to show 3. what controls to...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.