Hi all,
I have a situation that has me stumped.
I am modifying an existing
java program that alters html code. The version of Java is 1.4.2. I don't have a choice over this. It is a packaged system that isn't likely to change soon. My task is to read some of the attributes for a DIV tag and based on those attributes append some code to the onload statement for the body of the html.
I know how I would do this if I were using javascript to access the attributes but this task requires that I use this existing java program.
To this point I have started by getting an enumeration of all of the elements in the html file. I look for DIV elements and when I find one, I try to enumerate through the names of the attributes for it. I am not able to do a search of all elements by name because the name will always be different. The class name is the only thing that will stay constant.
I keep getting a compiler error when I try to instantiate the attribute class at this point. I don't see a class definition that contains the name and the value of the attribute.
If someone could point me in the right direction, or even in a direction that I haven't traveled yet, I would greatly appreciate the help.
Thanks much,
Doug Harding
State of Utah