From: Daniel Veillard (Daniel.Veillard@w3.org)
Date: Sun Oct 29 2000 - 16:12:18 EST
On Sun, Oct 29, 2000 at 03:15:15PM -0500, Harry Blundell wrote:
>
> Hi,
>
> The only way that I could find to create a DTD as an internal subset was
> to call xmlParseDTD to read it from a file or URL (I haven't tried it
> yet, but I've seen some discussion on it, so I assume it works), and then
> attach the resulting node tree to my XML DOM.
>
> Is it possible (and convenient ;-) to have the DTD in a plain text buffer
> and parse that?
Try the following patch, it provides:
xmlDtdPtr xmlIOParseDTD (xmlSAXHandlerPtr sax,
xmlParserInputBufferPtr input,
xmlCharEncoding enc);
you can generate an xmlParserInputBufferPtr from memory using
xmlParserInputBufferPtr
xmlParserInputBufferCreateMem (const char *mem, int size,
xmlCharEncoding enc);
exported from xmlIO.h .
Warning I didn't tested the routine, tell me if this works :-)
Daniel
-- Daniel.Veillard@w3.org | W3C, INRIA Rhone-Alpes | libxml Gnome XML toolkit Tel : +33 476 615 257 | 655, avenue de l'Europe | http://xmlsoft.org/ Fax : +33 476 615 207 | 38330 Montbonnot FRANCE | Rpmfind search site http://www.w3.org/People/all#veillard%40w3.org | http://rpmfind.net/
---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Sun Oct 29 2000 - 16:48:50 EST