2
<!DOCTYPE gsdoc PUBLIC "-//GNUstep//DTD gsdoc 0.6.6//EN" "http://www.gnustep.org/gsdoc-0_6_6.xml">
3
<gsdoc base="GSXMLDocument" next="GSXMLParser" up="GSXML" prev="GSXMLAtrribute">
5
<title>GSXMLDocument</title>
6
<author name="Michael Pakhantsov">
7
<email address="mishel@berest.dp.ua"/>
9
<version>$Revision: 1.3 $</version>
10
<date>$Date: 2001/03/03 09:58:53 $</date>
15
<heading>GSXMLDocument</heading>
16
<class name="GSXMLDocument" super="NSObject">
17
<declared>GSXML.h</declared>
25
<method type="GSXMLDocument*" factory="yes">
26
<sel>documentWithVersion:</sel>
27
<arg type="NSString*">version</arg>
30
Creation of a new XML document.
35
id d = [GSXMLDocument documentWithVersion: @"1.0"];
37
[d setRoot: [d makeNodeWithNamespace: nil name: @"plist" content: nil]];
38
[[d root] setProp: @"version" value: @"0.9"];
39
n1 = [[d root] makeChildWithNamespace: nil name: @"dict" content: nil];
40
[n1 makeComment: @" this is a comment "];
41
[n1 makePI: @"pi1" content: @"this is a process instruction"];
42
[n1 makeChildWithNamespace: nil name: @"key" content: @"Year Of Birth"];
43
[n1 makeChildWithNamespace: nil name: @"integer" content: @"65"];
44
[n1 makeChildWithnamespace: nil name: @"key" content: @"Pets Names"];
51
<sel>initWithVersion:</sel>
52
<arg type="NSString*">version</arg>
55
Creation of a new XML document.
60
<method type="GSXMLDocument*" factory="yes">
61
<sel>documentFrom:</sel>
62
<arg type="void*">data</arg>
65
Creation of a new Document from libxml data.
70
<method type="id" init="yes">
72
<arg type="void*">data</arg>
75
Creation of a new Document from libxml data.
80
<method type="NSString*">
84
Return the version of document.
89
<method type="NSString*">
93
Return the encoding of document.
100
<arg type="NSString*">filename</arg>
108
<method type="void*">
112
Return pointer to xmlDoc structure.
117
<method type="GSXMLNode*">
121
Return the root name of document.
126
<method type="GSXMLNode*">
128
<arg type="GSXMLNode*">node</arg>
131
Set the root element of the document.
132
Return the old root element.
137
<method type="GSXMLDocument*">
138
<sel>makeNodeWithNamespace:</sel>
139
<arg type="GSXMLNamespace*">ns</arg>
141
<arg type="NSString*">name</arg>
143
<arg type="NSString*">content</arg>
146
Creation of a new node element within a document.
153
d = [GSXMLDocument documentWithVersion: @"1.0"];
154
[d setRoot: [d makeNodeWithNamespace: nil name: @"plist" content: nil]];
155
[[d root] setProp: @"version" value: @"0.9"];
156
n1 = [[d root] makeChildWithNamespace: nil name: @"dict" content: nil];