Hi Kevin, Murry.

Thankyou very much for your help.

We are currently trying to store SMIL files for a project we are undertaking at the moment. The SMIL file has the DTD specified at the top to declare that SMIL version 2 is being used. But when we store and then retrieve the document, the comments of the DTD are included in the retrieved SMIL file, it really knocks RealOne player about! We just need the SMIL file out, the same as it went in.

We downloaded the CVS of Xindice (1.1b2) which I believe uses Xerces.

Murray Altheim from the Knowledge Media Institute suggested-
make a JAXP call:
  javax.xml.parsers.DocumentBuilderFactory.setIgnoringCommments(false);

Which we will try (Murry, i'm not sure which file though, since I've never programmed in Java!)
(I think it is xml-xindice/java/src/org/apache/xindice/xml/jaxp/DocumentBuilderImpl.java ?)


Kind regards,
Shane.


Kevin O'Neill wrote:

Hey Shane,

We need some advice on how to stop Xindice storing DTD comments with the XML document. Are there any obvious fixes we just havn't found?


Can you give me an example of what you have and what you want?

-k.




Reply via email to