Re: [xml] Creating a DTD from a plain text buffer?

Date view Thread view Subject view Author view

From: Harry Blundell (harry@halcyoninc.com)
Date: Mon Oct 30 2000 - 12:17:59 EST


Daniel,

I hope you will include xmlIOParseDTD - now that I know I can safely set
ExternalID and SystemID to NULL after I call it, I am very close to being
able to do what I want (I just have to figure out why I can't free the
xmlParserInputBuffer). I've even been able to validate the document
after attaching the DTD, with xmlValidateDocument.

Let me know your final decision - when I figure out why I can't free the
xmlParserInputBuffer, I'll let you know. Thanks for your help,

Harry
----------------------------------------------------------------------
Harry Blundell Halcyon Inc. URL: http://www.HalcyonInc.com
2300 Yonge St., Suite 1801, Box 2419, Toronto ON M4P 1E4, Canada.
PHONE: 416-932-4631 FAX: 416-932-4711 EMAIL: harry@HalcyonInc.com

On Mon, 30 Oct 2000, Daniel Veillard wrote:

> Well simply that a memory buffer has:
> - no ExternalID
> - no SystemID
> and you asked me to be able to use it without refering to a file.
> So it simply can't have those !
> Now if you want to have them loadable dynamically save them to a file
> and use the existing interface. Of course xmlValidateDocument fails
> because you attach this DTd to the document like if it was part of
> it while it's not. To validate a document against a xmlDtdPtr use
> xmlValidateDtd() not xmlValidateDocument().
> At that point I'm very tempted to simply not include xmlIOParseDTD()
> and ask you to save your DTd to a file. Seems to raise more problems
> than to fix any.
>
> 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

----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Oct 30 2000 - 12:43:34 EST