xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Edwin Goei <edwi...@sun.com>
Subject Re: help - java - Basic DOM parse
Date Thu, 26 Jul 2001 18:03:09 GMT
Robert Koberg wrote:
> I must be missing something very basic about DOM parsing.
> Here is an excerpt of the java code:
> DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance();
> DocumentBuilder docbuilder = dfactory.newDocumentBuilder();
> Document doc = docbuilder.parse(this_config);
> context.setAttribute("boo1", this_config);
> context.setAttribute("boo2", doc);
> The output indicates the correct file (with or without the file:///) if I
> check it in the filesystem, but doc is always null.  dfactory, docbuilder
> all show that they have been created. The xml file is well-formed.

Sorry, I don't understand the question.  What is "this_config" and
"context" in the code above and what is the problem you are trying to


In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org

View raw message