[xml] (correct) way to link external subset to newly created XML doc



Hello,

i'm wondering what's the correct way to create a reference to an
external subset in a document that i'm building from scratch.
It's not that i'm not able to do so, i'm actualy using

xmlCreateIntSubset(myDocPtr, "rootNode", NULL, "myDTD.dtd");

and it works like a charm.
When i'm saving the doc to disk (via xmlSaveFormatFileTo(...)),
it'll look like

<?xml version="1.0"?>
<!DOCTYPE rootNode SYSTEM "myDTD.dtd">
<rootNode>...</rootNode>

and that's exactly what i want.
But, AFAIK that's an *external* subset and i'm using a function named
...Create*Int*Subset (and that's the only function i've found that do
so...).

So, the question: Am i missing something (or have i misunderstood the
meaning of *internal*/*external* subset)?



Mit freundlichen Gruessen - Kind regards
Markus Henke



________________________Addressed by:________________________
 ORDAT GmbH & Co. KG  -  Serversystems / eCom 
 Dipl.-Inf. (FH) Markus Henke  Fon: +49 (641) 7941-0
 Rathenaustr. 1                Fax: +49 (641) 7941-132
 35394 Gießen                  mailto:markus henke ordat com
 See:                          http://www.ordat.com
_____________________________________________________________
              ...this behavior is by design...

 <<Markus Henke.vcf>> 

Attachment: Markus Henke.vcf
Description: Binary data



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