Skip to content

Commit 757d72b

Browse files
authored
Merge pull request #164 from FeXd/xml-methods
Xml methods added to reference
2 parents 27ba52c + 68cc488 commit 757d72b

File tree

2 files changed

+149
-5
lines changed

2 files changed

+149
-5
lines changed

Reference/api_en/XML.xml

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,150 @@ Only files encoded as UTF-8 (or plain ASCII) are parsed properly; the encoding p
4444

4545
<type>class</type>
4646

47+
<method>
48+
<label>getParent()</label>
49+
<description>Gets a copy of the element's parent</description>
50+
<ref>XML_getParent</ref>
51+
</method>
52+
53+
<method>
54+
<label>setName()</label>
55+
<description>Sets the element's name</description>
56+
<ref>XML_setName</ref>
57+
</method>
58+
59+
<method>
60+
<label>hasChildren()</label>
61+
<description>Checks whether or not an element has any children</description>
62+
<ref>XML_hasChildren</ref>
63+
</method>
64+
65+
<method>
66+
<label>listChildren()</label>
67+
<description>Returns the names of all children as an array</description>
68+
<ref>XML_listChildren</ref>
69+
</method>
70+
71+
<method>
72+
<label>getChildren()</label>
73+
<description>Returns an array containing all child elements</description>
74+
<ref>XML_getChildren</ref>
75+
</method>
76+
77+
<method>
78+
<label>getChild()</label>
79+
<description>Returns the child element with the specified index value or path</description>
80+
<ref>XML_getChild</ref>
81+
</method>
82+
83+
<method>
84+
<label>addChild()</label>
85+
<description>Appends a new child to the element</description>
86+
<ref>XML_addChild</ref>
87+
</method>
88+
89+
<method>
90+
<label>removeChild()</label>
91+
<description>Removes the specified child</description>
92+
<ref>XML_removeChild</ref>
93+
</method>
94+
95+
<method>
96+
<label>getAttributeCount()</label>
97+
<description>Counts the specified element's number of attributes</description>
98+
<ref>XML_getAttributeCount</ref>
99+
</method>
100+
101+
<method>
102+
<label>listAttributes()</label>
103+
<description>Returns a list of names of all attributes as an array</description>
104+
<ref>XML_listAttributes</ref>
105+
</method>
106+
107+
<method>
108+
<label>hasAttribute()</label>
109+
<description>Checks whether or not an element has the specified attribute</description>
110+
<ref>XML_hasAttribute</ref>
111+
</method>
112+
113+
<method>
114+
<label>getString()</label>
115+
<description>Gets the content of an attribute as a String</description>
116+
<ref>XML_getString</ref>
117+
</method>
118+
119+
<method>
120+
<label>setString()</label>
121+
<description>Sets the content of an attribute as a String</description>
122+
<ref>XML_setString</ref>
123+
</method>
124+
125+
<method>
126+
<label>getInt()</label>
127+
<description>Gets the content of an attribute as an int</description>
128+
<ref>XML_getInt</ref>
129+
</method>
130+
131+
<method>
132+
<label>setInt()</label>
133+
<description>Sets the content of an attribute as an int</description>
134+
<ref>XML_setInt</ref>
135+
</method>
136+
137+
<method>
138+
<label>getFloat()</label>
139+
<description>Gets the content of an attribute as a float</description>
140+
<ref>XML_getFloat</ref>
141+
</method>
142+
143+
<method>
144+
<label>setFloat()</label>
145+
<description>Sets the content of an attribute as a float</description>
146+
<ref>XML_setFloat</ref>
147+
</method>
148+
149+
<method>
150+
<label>getContent()</label>
151+
<description>Gets the content of an element</description>
152+
<ref>XML_getContent</ref>
153+
</method>
154+
155+
<method>
156+
<label>getIntContent()</label>
157+
<description>Gets the content of an element as an int</description>
158+
<ref>XML_getIntContent</ref>
159+
</method>
160+
161+
<method>
162+
<label>getIntContent()</label>
163+
<description>Gets the content of an element as an int</description>
164+
<ref>XML_getIntContent</ref>
165+
</method>
166+
167+
<method>
168+
<label>getFloatContent()</label>
169+
<description>Gets the content of an element as a float</description>
170+
<ref>XML_getFloatContent</ref>
171+
</method>
172+
173+
<method>
174+
<label>setContent()</label>
175+
<description>Sets the content of an element</description>
176+
<ref>XML_setContent</ref>
177+
</method>
178+
179+
<method>
180+
<label>format()</label>
181+
<description>Formats XML data as a String</description>
182+
<ref>XML_format</ref>
183+
</method>
184+
185+
<method>
186+
<label>toString()</label>
187+
<description>Gets XML data as a String using default formatting</description>
188+
<ref>XML_toString</ref>
189+
</method>
190+
47191
<related>loadXML</related>
48192
<related>parseXML</related>
49193
<related>saveXML</related>

content/css/style.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,10 @@ p.exhibition-nav { margin-top: 20px; margin-bottom: 10px; }
479479
#reference-nav { position: relative; width: 300px; height: 2em; padding-top: .5em; }
480480
#reference-nav p { position: absolute; right: 10px; top: 0; margin: 0; }
481481

482-
.refchunk>td { padding-bottom: 1em; }
483-
.refchunk td { line-height: 140%; }
482+
.refchunk td {
483+
line-height: 140%;
484+
padding-bottom: 1em;
485+
}
484486
.ref-top {
485487
display:none;
486488
margin-top: 20px;
@@ -490,12 +492,10 @@ p.exhibition-nav { margin-top: 20px; margin-bottom: 10px; }
490492
.ref-notice { margin: 0 0 2.5em 0; color: #FF3399; clear: both; margin-right: 40px;}
491493

492494
.ref-item { margin-bottom: 60px; }
493-
.ref-item > th {
494-
width: 100px;
495-
}
496495
.ref-item th {
497496
font-weight: bold; text-align: left; vertical-align: top;
498497
padding-right: 2em;
498+
width: 100px;
499499
}
500500
.ref-item > td { vertical-align: top; padding-bottom: 2em; max-width: 600px;}
501501
.ref-item > td p {

0 commit comments

Comments
 (0)