We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
parent
root()
1 parent 3ebafae commit 6eb193bCopy full SHA for 6eb193b
packages/xml/README.md
@@ -109,6 +109,22 @@ days.find(day => day.attrs.idx === 0)
109
days.filter(day => day.attrs.idx > 2)
110
```
111
112
+### parent
113
+
114
+You can get the parent node using the parent property.
115
116
+```js
117
+console.log(message.getChild('days').parent === message)
118
+```
119
120
+### root
121
122
+You can get the root node using the root method.
123
124
125
+console.log(message.getChild('days').root() === message)
126
127
128
## Editing
129
130
### attributes
0 commit comments