Hi everybody,
I'm writing a program that uses an xml file format for inputs. To validate
the input, I'd like to use DTDs. Thus, I can warn the user if the used
input does not validate the file format, and can afterwards be sure that
the tree I parsed contains all needed elements. As the file format
shouldn't change, I thought it's best to integrate the DTD in the
executable, so that I don't have to rely on an external file containing
the DTD.
To integrate the DTD, I planned to use a static member of the responsible
class. This member should contain the DTD as a string.
There comes my question: Is there any way to parse a DTD from an in-memory
string?
I have found the xmlParseMemory function, but as this return a xmlDocPtr,
it doesn't look suitable.
Having read the following thread, I don't have much hope, but like to ask
you all anyway:
http://mail.gnome.org/archives/xml/2002-August/msg00199.html
Thanks a lot in advance,
Anne
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml