|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: parse using DOM
try instead:
DOMParser parser = new DOMParser();
parser.parse(strFile);
Document xmlDoc = parser.getDocument();
hth
</anders>
-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Paul Beer
Sent: Wednesday, February 02, 2000 12:53 AM
To: xsl-list@xxxxxxxxxxxxxxxx
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








