Re: [xml] PUBLIC DocType



On Sat, Sep 29, 2001 at 11:06:50PM +1000, Steve Bond wrote:
I?m trying to work out how to insert the line <!DOCTYPE DocEnvelope
PUBLIC ?blah? ?blah?> into an XML document.
 
doc = xmlNewDoc("1.0");
 
I know I need something in here, but don?t know what ? can you help
urgently please?
 
doc->children = xmlNewDocNode(doc, NULL, "DocEnvelope", NULL);
tree = xmlNewChild(doc->children, NULL, "Doc_Header",  NULL);
 

You want xmlCreateIntSubset

It's documented here:

http://xmlsoft.org/html/libxml-tree.html#XMLCREATEINTSUBSET

Cheers,
-- 
John Fleck
jfleck inkstain net (h), http://www.inkstain.net/fleck/






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