From: Kenneth Pronovici (pronovic@skyjammer.com)
Date: Wed Aug 16 2000 - 19:07:18 EDT
With regard my earlier post... I decided to make this change myself and let
others decide whether the change is appropriate. It didn't end up being
too difficult, and I don't seem to have broken and of the regression tests.
I will be posting a patch to the gnome-xml bug list later today. Here are
the comments from the patch:
/* This section added by KJP 08/16/00 ******************************/
/*
I needed the <!DOCTYPE> information printed in my XML documents
so that downstream subscribers could validate this XML against
an external DTD. This was not possible with the current
xmlSaveFile functionality, so I customized the functionality.
Changes were based on the original implementations of xmlSaveFile
and xmlDocContentDumpOutput. The changes just ensure that if the
DTD is filled in, the <!DOCTYPE> tag will be printed appropriately.
It seemed like a good idea to make two new functions (xmlSaveFileWithDTD
and xmlDocContentDumpOutputWithDTD) rather than to modify the existing
ones, so functions not expecting this behavior would not be harmed.
Questions? Please write <pronovic@ieee.org>.
*/
KEN
-- Kenneth J. Pronovici <pronovic@ieee.org> Alliance of Computer Professionals (http://www.acpros.com/) Personal Homepage: http://www.skyjammer.com/~pronovic/ Home: 763.546.0140, NWA: 612.726.0842 "Hell hath no fury like the weather when I'm camping..."On Wed, 16 Aug 2000, Kenneth Pronovici wrote:
> Hello. > > I am building a distributed publish-and-subscribe system under > Solaris using TIBCO for messaging and XML to encode my messages. > > I have already figured out how to have subscribers validate the > XML documents they receive based on external DTDs (i.e. specified > by <!DOCTYPE doc SYSTEM "doc.dtd"> in the XML). Now I have moved > onto the next piece, having the publishers create the XML documents > to be published. In general, I understand how this is done. I just > have not been able to generate XML with an appropriate <!DOCTYPE> > tag which my subscribers can use to validate the XML documents they > receive. > > In the mailing list archives, I found a letter from Nadine Peyrouze > (Nadine.Peyrouze@bull.net) with the subject "using external dtd". > Daniel's answer to Nadine implies that there is no way to insert the > <!DOCTYPE> tag into XML documents generated using libxml. > > Is this true, or I have I misinterpreted Daniel's answer? Is any > support for this expected to be available in the future? In my case, > it will be difficult to build a complete system relying in validated > XML if I can't generate XML documents which reference an external DTD. > I would be happy to work on libxml code to allow this if someone could > point me in the right direction. > > Regards, > > KEN > > -- > Kenneth J. Pronovici <pronovic@ieee.org> > Alliance of Computer Professionals (http://www.acpros.com/) > Personal Homepage: http://www.skyjammer.com/~pronovic/ > "Hell hath no fury like the weather when I'm camping..." > >
---- Message from the list xml@xmlsoft.org Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@xmlsoft.org
This archive was generated by hypermail 2b29 : Wed Aug 16 2000 - 16:43:10 EDT