xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthew Oatham" <matthewoat...@hotmail.com>
Subject creating DOM from file
Date Mon, 14 Apr 2003 14:57:47 GMT
Hi,

When I create a DOM from an existing file the resulting xml has the following elements missing

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN'
'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>

I am using DocumentBuilder.parse(File file) to load the DOM tree. Is there a way to retain
or add these elements?

Regards.

Matt



Mime
View raw message