Hello,
I ran into a very strange issue when using the org.w3c.dom.html interfaces in the release versions of Xerces2 (tried 2.3.0 and 2.4.0). The binaries of the xmlParserAPIs.jar and xml-apis.jar both seem to contain a different version of the html dom interfaces than what comes in the source. For instance, in the Xerces-J-src.2.3.0.zip download, when I browse to org.w3c.dom.html.HTMLOptionElement.java, said file contains the method setSelected(boolean). However, when I grab the class file from the binary release (Xerces-J-bin.2.3.0.zip) it HTMLOptionElement does not contain that method. What gives here?
Another very confusing thing is the source download for the 2.4.0 distribution (Xerces-J-src.2.4.0.zip) contains only a single file in the org.w3c.dom.html package ( HTMLDOMImplementation.java ). Where are rest? Well, maybe in the xml-apis--src.zip that comes in the Xerces-J-tools.2.4.0.zip download. Is that right? Well, the problem here is that the w3c htm dom being used there is based on the original html dom 1 source released back in 1998. HTMLOptionElement did not have the setSelected(boolean), only getSelected(). But anyone who has used Xerces-1 has already been used to using newer dom interfaces with setSelected(boolean) in HTMLOptionElement.
Can anyone clear this up?
1. Why has Xerces2 reverted to an older version of the dom interfaces than Xerces1 had?
2. Why does the source download for Xerces 2.3.0 come with newer versions of the dom interfaces than is released in the 2.3.0 binaries (or any of the Xerces2 binaries, for that matter)? And why does the source download for Xerces 2.4.0 not have these newer sources anymore?
3. Where did these newer sources come from anyway? After the html DOM1 release, all work was done on the html DOM2 release,. but that falls under a different package named org.w3c.dom.html2.
Curiously enough, if I extract the org.w3c.dom.html package from the Xerces 2.3.0 source distribution, compile the interfaces, jar the interfaces, and put the jar in my build classpath, everything compiles just fine.
extremely confused,
Jake
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
