You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/integrating-xml/the-xml-object.md
+41-41Lines changed: 41 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -270,10 +270,10 @@ The `XML` object provides methods that allow you to retrieve elements contained
270
270
-`XML.`[children()](xml-object-reference.md#xml-object-children) gets the direct child elements, including text elements.
271
271
-`XML.`[elements()](xml-object-reference.md#xml-object-elements) gets the direct child elements that are XML tags, but does not get text.
272
272
-`XML.`[descendants()](xml-object-reference.md#xml-object-descendants) allows you to match a specific tag, and gets all matching elements at any level of nesting. You can also use a "double dot" notation to access descendants of an element. For example, these statements are equivalent:
273
-
```javascript
274
-
xml..title
275
-
xml.descendants("title")
276
-
```
273
+
```javascript
274
+
xml..title
275
+
xml.descendants("title")
276
+
```
277
277
278
278
For example, consider thisXML code loaded into a top-level `XML` object named `x`:
279
279
@@ -291,45 +291,45 @@ For example, consider this XML code loaded into a top-level `XML` object named `
291
291
Here are the results of the different calls.
292
292
293
293
- The result of`XML.`[children()](xml-object-reference.md#xml-object-children) contains 3 elements, the direct child tags `<one>` and `<two>`, and the directly contained text of the `<top>` tag:
294
-
```xml
295
-
**> x.children()**
296
-
<one>one text</one>
297
-
<two>
298
-
two text
299
-
<inside>inside text</inside>
300
-
</two>
301
-
top text
302
-
303
-
**> x.children().length()**
304
-
3
305
-
```
294
+
```xml
295
+
**> x.children()**
296
+
<one>one text</one>
297
+
<two>
298
+
two text
299
+
<inside>inside text</inside>
300
+
</two>
301
+
top text
302
+
303
+
**> x.children().length()**
304
+
3
305
+
```
306
306
- The result of`XML.`[elements()](xml-object-reference.md#xml-object-elements) contains 2 elements, the direct child tags `<one>` and `<two>`:
307
-
```xml
308
-
**> x.elements()**
309
-
<one>one text</one>
310
-
<two>
311
-
two text
312
-
<inside>inside text</inside>
313
-
</two>
314
-
**> x.elements().length()**
315
-
2
316
-
```
307
+
```xml
308
+
**> x.elements()**
309
+
<one>one text</one>
310
+
<two>
311
+
two text
312
+
<inside>inside text</inside>
313
+
</two>
314
+
**> x.elements().length()**
315
+
2
316
+
```
317
317
- The result of`XML.`[descendants()](xml-object-reference.md#xml-object-descendants) contains 7 elements, the direct child tags `<one>` and `<two>`, the `<inside>` tag one level down, and the text contents of all the tags:
0 commit comments