shane nuessler wrote:
YIPEE!
Thanks Marray for all your help!
In the end I added
saxReader.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd",
false);
just under
saxReader.setProperty("http://xml.org/sax/properties/lexical-handler",
ser);
in
xml-xindice-1.0/java/src/org/apache/xindice/tools/command/AddDocument.java
AND NO DTD COMMENTS IN MY RETRIEVED DOCUMENT!!
Why different things work to achive this I don't know, but now I can go
home happy!
Feedback welcome.
There a lot of SAX, DOM Xerces features. You've turned off loading the
external DTD, which means you won't get any validation. If that's okay,
things are cool. If you'd rather keep loading the DTD but just turn off
comments, try a different Xerces DOM-related feature:
http://apache.org/xml/features/include-comments (set to false)
thought I know how it is: once you get something fixed after spending
a lot of time on it, the last thing you want is more advice on how to
break it again...
Murray
...........................................................................
Murray Altheim http://kmi.open.ac.uk/people/murray/
Knowledge Media Institute
The Open University, Milton Keynes, Bucks, MK7 6AA, UK .
"Shhh. Be vewy, vewy quiet. We're hunting wabbits." -- Elmer Fudd
"I don't know how close we are, closer than we were yesterday,
I guess. All I know is we're on the hunt." -- George W. Bush
BBC News: http://news.bbc.co.uk/1/hi/world/americas/3110615.stm