Re: Parsing XML with Dom
nuthinking@googlemail.com wrote:
...
DocumentBuilderFactory.setIgnoringElementContentWhitespace doesn't
seem to work at all, I still get the new lines as text elements :S
...
Here the small code I used:
A highly motivated* master of the craft** might be able to spot
the mistake in your 63 line snippet by eye. To get the help
of 'the rest of us', you are better off posting an SSCCE***.
* Highly enough motivated to try and spot mistakes by
simply reading the code, as opposed to seeing the code
work/fail when run.
** ..and they would probably need to know XML processing
inside and out, often mistakes are spotted by people who do
not know an API that well, but were simply interested enough
to run a code sample.
*** <http://www.physci.org/codes/sscce.html>
It would be best to pull a small XML directly from
URL off a web site. If you cannot manage to upload
it to somehwere that is open to being fetched by Java,
try including a small sample in your post.
--
Andrew Thompson
http://www.athompson.info/andrew/
Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200709/1