dcsimg
Is there any HTMLParser Tool which parses according to the tags..
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, December 6, 2001 04:17 AM

hi folks,
I have a query regarding the Parsing of HTML. Is there any third party tool which can parse HTML based on the image or img or src tags?

Can somebody help me to come out of this problem?

thanx

satish kumar K

Re: Is there any HTMLParser Tool which parses according to the tags..

Posted By:   Phil_Kesel  
Posted On:   Thursday, December 6, 2001 07:49 AM

Your question is rather vague, but I'm guessing you want to find nodes in your HTML page that are images, and that you want to manipulate those nodes, perhaps changing images. The Xerces Document class, which is exended by the HTMLDocument class, has a method called getElementsByTagName. It returns a NodeList that you can traverse to find the node you like. You could also put an ID attribute in the IMG elment and use getElementById to find a particular element.

About | Sitemap | Contact