You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Batik User <ba...@bilbao.com> on 2001/09/05 17:50:35 UTC

createDocument not found in interface

Hi!

When trying to compile:

---------//-----
import java.awt.Rectangle;
import java.awt.Graphics2D;
import java.awt.Color;
import java.io.Writer;
import java.io.OutputStreamWriter;
import java.io.IOException;
import org.apache.batik.svggen.SVGGraphics2D;
import org.apache.batik.dom.GenericDOMImplementation;
import org.w3c.dom.Document;
import org.w3c.dom.DOMImplementation;
...
Document document = domImpl.createDocument(null, "svg",
null);
...
-----------//-------

I get this error

Method createDocument not found in interface
org.w3c.dom.DomImplementation

Any suggestion???
_______________________________________________________________________
¿Sabes que puedes redireccionar tu correo de HispaVista a donde tú quieras?
http://www.hispavista.com/altascorreo/

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org


Re: createDocument not found in interface

Posted by Elena Litani <el...@ca.ibm.com>.
> I get this error
> 
> Method createDocument not found in interface
> org.w3c.dom.DomImplementation
> 
> Any suggestion???

Check your classpath. It looks like you're picking up DOM level 1 APIs.

Elena.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org


Re: createDocument not found in interface

Posted by Batik User <ba...@bilbao.com>.
Here you are the complete code (Proba.java):

---------------//------------------------
import java.io.IOException;
import org.apache.batik.dom.svg.SVGDOMImplementation;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.DOMImplementation;
 
public class Proba {

	public static void main(String [] args) throws IOException
{
		
		DOMImplementation impl = SVGDOMImplementation.getDOMImplementation();
		String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI;
		Document doc = impl.createDocument(svgNS, "svg", null);
	}	
}
--------------------//------------------

The error message is:

createDocument not found in interface
org.w3c.dom.DOMImplementation
_______________________________________________________________________
¿Sabes que puedes redireccionar tu correo de HispaVista a donde tú quieras?
http://www.hispavista.com/altascorreo/

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org