Hi All,
This is interesting problem. I believe JDK 1.4.x is being used which contains DOM apis. Sam, Can you confirm this ?
Well, the problem is with the Xerces2. I found that Xerces2 DOM HTML apis are different than the official version of DOM HTML apis available withW3C http://www.w3.org/TR/DOM-Level-2-HTML/java-binding.html
Xerces2 version of DOM HTML apis doesn't contain getContentDocument() function in "HTMLFrameElement", "HTMLIFrameElement" & "HTMLObjectElement" interfaces. And there is no implementation of these functions in
corresponding implementation classes.


org.apache.html.dom.HTMLFrameElementImpl
,org.apache.html.dom.HTMLIFrameElementImpl
,org.apache.html.dom.HTMLObjectElementImpl

I am not sure of the history of DOM HTML implementation in Xerces but one thing to note is that these functions were introduced in DOM Level 2.

What should be the solution ?

Since these functions are not supported with Xerces for a long time. I propose that we should throw java.lang.UnsupportedOperationException for now. However, if anyone is willing to provide the implementation for these functions, it is more than welcome.


Thoughts ?



Neeraj



Sam Ruby wrote:


----------------------------------------------------
This email is autogenerated from the output from:
<http://cvs.apache.org/builds/gump/2003-03-19/xml-xerces.html>
----------------------------------------------------

Buildfile: build.xml

init:
    [echo] ---------------- Xerces-J 2.3.0 [1999-2003] ---------------

prepare:
   [mkdir] Created dir: /home/rubys/jakarta/xml-xerces2/java/build

prepare-common:
   [mkdir] Created dir: /home/rubys/jakarta/xml-xerces2/java/build/src
   [mkdir] Created dir: /home/rubys/jakarta/xml-xerces2/java/build/classes
   [mkdir] Created dir: /home/rubys/jakarta/xml-xerces2/java/build/classes/META-INF
   [mkdir] Created dir: 
/home/rubys/jakarta/xml-xerces2/java/build/classes/META-INF/services
    [copy] Copying 1 file to 
/home/rubys/jakarta/xml-xerces2/java/build/classes/META-INF/services
    [copy] Copying 1 file to 
/home/rubys/jakarta/xml-xerces2/java/build/classes/META-INF/services
    [copy] Copying 1 file to 
/home/rubys/jakarta/xml-xerces2/java/build/classes/META-INF/services

prepare-src:
    [copy] Copying 1 file to 
/home/rubys/jakarta/xml-xerces2/java/build/classes/META-INF/services
    [copy] Copying 593 files to /home/rubys/jakarta/xml-xerces2/java/build/src
   [unzip] Expanding: /home/rubys/jakarta/xml-xerces2/java/tools/xml-apis--src.zip 
into /home/rubys/jakarta/xml-xerces2/java/build/src

compile:
    [copy] Copying 8 files to /home/rubys/jakarta/xml-xerces2/java/build/classes
  [xjavac] Compiling 607 source files to 
/home/rubys/jakarta/xml-xerces2/java/build/classes
  [xjavac] 
/home/rubys/jakarta/xml-xerces2/java/build/src/org/apache/html/dom/HTMLFrameElementImpl.java:70:
 org.apache.html.dom.HTMLFrameElementImpl should be declared abstract; it does not 
define getContentDocument() in org.apache.html.dom.HTMLFrameElementImpl
  [xjavac] public class HTMLFrameElementImpl
  [xjavac]        ^
  [xjavac] 
/home/rubys/jakarta/xml-xerces2/java/build/src/org/apache/html/dom/HTMLObjectElementImpl.java:70:
 org.apache.html.dom.HTMLObjectElementImpl should be declared abstract; it does not 
define getContentDocument() in org.apache.html.dom.HTMLObjectElementImpl
  [xjavac] public class HTMLObjectElementImpl
  [xjavac]        ^
  [xjavac] 
/home/rubys/jakarta/xml-xerces2/java/build/src/org/apache/html/dom/HTMLIFrameElementImpl.java:70:
 org.apache.html.dom.HTMLIFrameElementImpl should be declared abstract; it does not 
define getContentDocument() in org.apache.html.dom.HTMLIFrameElementImpl
  [xjavac] public class HTMLIFrameElementImpl
  [xjavac]        ^
  [xjavac] Note: Some input files use or override a deprecated API.
  [xjavac] Note: Recompile with -deprecation for details.
  [xjavac] 3 errors

BUILD FAILED
file:///home/rubys/jakarta/xml-xerces2/java/build.xml:233: Compile failed; see the 
compiler error output for details.

Total time: 28 seconds

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to