This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: parse using DOM
- To: <xsl-list at mulberrytech dot com>
- Subject: RE: parse using DOM
- From: "Anders K" <cyberspock at telia dot com>
- Date: Wed, 2 Feb 2000 10:22:08 +0100
- Reply-To: xsl-list at mulberrytech dot com
try instead:
DOMParser parser = new DOMParser();
parser.parse(strFile);
Document xmlDoc = parser.getDocument();
hth
</anders>
-----Original Message-----
From: owner-xsl-list@mulberrytech.com
[mailto:owner-xsl-list@mulberrytech.com]On Behalf Of Paul Beer
Sent: Wednesday, February 02, 2000 12:53 AM
To: xsl-list@mulberrytech.com
Cc: JSP-INTEREST@JAVA. SUN. COM
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);
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list