From: Daniel Veillard (veillard@redhat.com)
Date: Tue Feb 27 2001 - 11:54:22 EST
> Should the xmlNewDTD function do this for you? I tried using this first since
> it explicitly manipulates the external subset, however it doesn't call
> xmlParseDTD so it's currently useless for my purposes.
right, it just loads the IDs into a new Dtd node.
> Here's a full code snippet in case my rambling is confusing
>
> doc = xmlNewDoc(BAD_CAST "1.0");
> xmlCreateIntSubset(doc, BAD_CAST "host_rm",
> BAD_CAST "-//XXX//YYY//EN",
> BAD_CAST "file:///tmp/rm_all.dtd");
> doc->extSubset = xmlParseDTD(doc->intSubset->ExternalID,
> doc->intSubset->SystemID);
Sounds it should do what you're looking for, right, i.e. adding
Dtd informations to the document without doing a validation.
Daniel
-- Daniel Veillard | Red Hat Network http://redhat.com/products/network/ veillard@redhat.com | libxml Gnome XML toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine 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 : Tue Feb 27 2001 - 12:43:32 EST