xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Murray Altheim <m.alth...@open.ac.uk>
Subject Re: dtd expansion
Date Thu, 07 Aug 2003 11:37:35 GMT
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


Mime
View raw message