I am using xerces 1.01 and DomParser has only one constructor - and it has
no paramaters.
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Paul Beer
Sent: Wednesday, 2 February 2000 10:53
To: [EMAIL PROTECTED]
Subject: parse using DOM
does anyone know why this code fails :
all I want to do is output the packet .....
<%@ page import="java.io.*"%>
<%@ page import="org.w3c.dom.*"%>
<%@ page import="org.apache.xerces.parsers.DOMParser"%>
<%@ page import="org.xml.sax.InputSource"%>
<%
String filename = "foo.xml";
DOMParser parser = new DOMParser(filename);
Document fdoc = parser.parse();
%>
the error is :
D:\Java\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_xml\_Dom__IBM.java:
91: Wrong number of arguments in constructor.
DOMParser parser = new DOMParser(filename);
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html