Re: [xml] PUBLIC DocType
- From: John Fleck <jfleck inkstain net>
- To: Steve Bond <steev bigpond net au>
- Cc: xml gnome org
- Subject: Re: [xml] PUBLIC DocType
- Date: Sat, 29 Sep 2001 16:13:57 -0600
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]