P
Peter Wu
I am having problem in parsing the html documentation.
If my Tag = html.tag.a,
it has no problem to get it.
But if myTag = html.tag.input, it does not give me anything, although
the html documentation have both <a> & < input> tag..
Anyone know the reason?
Thanks
=================================================================
HTMLDocument.Iterator it = doc.getIterator(myTag);
while( it.isValid()){
SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
System.out.println( s.toString() );
it.next();
}
java -version
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)
If my Tag = html.tag.a,
it has no problem to get it.
But if myTag = html.tag.input, it does not give me anything, although
the html documentation have both <a> & < input> tag..
Anyone know the reason?
Thanks
=================================================================
HTMLDocument.Iterator it = doc.getIterator(myTag);
while( it.isValid()){
SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
System.out.println( s.toString() );
it.next();
}
java -version
java version "1.4.2_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_04-b05)
Java HotSpot(TM) Client VM (build 1.4.2_04-b05, mixed mode)