Re: Xml doc = dom.parseString(request.getReader());
Daniel Pitts wrote:
Add somewhere:
parser = DocumentBuilderFactory().newInstance().newDocumentBuilder()
gert wrote:
import javax.xml.parsers.*;
DocumentBuilder parser = null;
parser = DocumentBuilderFactory().newInstance().newDocumentBuilder();
I am sorry i must misunderstand something because the compiler doesn't
like it telling me it cant find the symbols.
It's time for you to provide an "SSCCE" - a Simple, Self-Contained Complete
Example. That is, a complete, simplified example that yields the error of
interest. Complete. Simplified. Complete.
We need /actual/ code and /actual/ compiler messages. Note that it is not
possible that "the compiler doesn't like it"; compilers don't have emotions.
We are unable to diagnose your issue or assist you given only anthropomorphic
approximations to the evidence.
Java note:
DocumentBuilder parser = null;
parser = DocumentBuilderFactory().newInstance().newDocumentBuilder();
Just use
DocumentBuilder parser =
DocumentBuilderFactory().newInstance().newDocumentBuilder();
Why initialize the variable twice?
Also, in English the word "I" is always capitalized, and use punctuation to
avoid ambiguity. "[T]he compiler doesn't like it telling me..." means, "the
compiler doesn't like [some previously mentioned thing] to tell me ...",
whereas I suspect you intended, "The compiler doesn't like it, telling me ...".
Programming is an art of precision.
--
Lew
--
Lew