Re: [xml] Parsing a DTD

I have tried that and it creates an empty internal DTD skeleton into my
I have my original dtd in the file genealog.dtd that is in the same folder
where my application is.
I have also tried to load it givin it the full path name but the xmlParseDTD
always returns NULL.

I want to be able to put all my data in the same file- At least it makes
creating the compressed
image easier as I have not yet found out how to insert more than one file
using commands like

xmlSetDocCompressMode (doc,9);
 xmlOutputBufferPtr buf =   xmlOutputBufferCreateFilename((const char


Kaarle Kaila
email: kaarle dot kaila at iki dot fi

----- Original Message ----- 
From: "John Fleck" <jfleck inkstain net>
To: <xml gnome org>
Sent: Sunday, February 01, 2004 4:26 PM
Subject: Re: [xml] Parsing a DTD

On Sun, 2004-02-01 at 04:32, Kaarle Kaila wrote:

I am creating an xml file as a backup of my database and now I have been
trying to add
the DTD into the xml-file. For that purpose I try to read teh dtd using
command below:

 xmlDtdPtr dtd = xmlParseDTD(NULL,(const xmlChar*)"genealog.dtd");

It's not immediately obvious what your error is, but given what it sound
as though you're trying to do, you might want to try xmlCreateIntSubset:


xml mailing list, project page
xml gnome org

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]