[xml] PUBLIC DocType



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);

 

Thanks,

 

Steve Bond



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