Hi, Can you help me?
I try to write html parser, but nothing unacts me unknow that make wrong. I
have found something code, but I don't know what insert before this code :
if (t == HTML.Tag.META)
{
System.out.println("Inside META tage data");
String attrib = (String) a.getAttribute (HTML.Attribute.NAME);
if (attrib != null)
{
}
String content =(String) a.getAttribute(HTML.Attribute.CONTENT);
if (content != null)
{
}
String httpequiv = (String)a.getAttribute(HTML.Attribute.HTTPEQUIV);
if (httpequiv != null)
{
}
String meta = attrib + content + httpequiv;
System.out.println(meta);
}
JavaJug - 03 Jun 2004 09:18 GMT
> Hi, Can you help me?
> I try to write html parser, but nothing unacts me unknow that make wrong. I
[quoted text clipped - 20 lines]
> System.out.println(meta);
> }
You can parse html with the Swing classes of Java.
See http://www.informit.com/articles/article.asp?p=31059&redir=1

Signature
"There is a theory which states that if ever anyone discovers exactly what the
Universe is for and why it is here, it will instantly disappear and be replaced
by something even more bizarre and inexplicable.
There is another theory which states that this has already happened."
-- Douglas Adams
Pavel L.Yatsuk - 04 Jun 2004 11:32 GMT
Hello!
You want to write parser or parse HTML file?
If last than use http://xmlc.objectweb.org/
> Hi, Can you help me?
> I try to write html parser, but nothing unacts me unknow that make wrong. I
[quoted text clipped - 20 lines]
> System.out.println(meta);
> }
William Brogden - 05 Jun 2004 13:57 GMT
> Hello!
> You want to write parser or parse HTML file?
[quoted text clipped - 3 lines]
>> I try to write html parser, but nothing unacts me unknow that make
>> wrong. I
The JTidy toolkit - http://sourceforge.net/projects/jtidy
is another possible source of inspiration for parsing HTML.
Bill
Roedy Green - 04 Jun 2004 13:34 GMT
> I try to write html parser, but nothing unacts me unknow that make wrong.
see http://mindprod.com/jgloss/parser.html
Quiotix will turn HTML into a tree you can then chase.

Signature
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Rogan Dawes - 07 Jun 2004 07:44 GMT
> Hi, Can you help me?
> I try to write html parser, but nothing unacts me unknow that make wrong. I
> have found something code, but I don't know what insert before this code :
Also have a look at HTMLParser on SourceForge.net
http://sourceforge.net/projects/htmlparser/
Rogan

Signature
Rogan Dawes
*ALL* messages to discard@dawes.za.net will be dropped, and added
to my blacklist. Please respond to "nntp AT dawes DOT za DOT net"