File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ Element <- setRefClass(
182
182
},
183
183
184
184
getChild = function (name ) {
185
- " Retrun the first child element matching the name"
185
+ " Return the first child element matching the name"
186
186
for (content in contentList ) {
187
187
if (" Element" == class(content ) & content $ getName() == name ) {
188
188
# print(paste("Found child element", content))
Original file line number Diff line number Diff line change 1
1
# ' @title Create a data frame from a xmlr Element
2
2
# ' @description This is a convenience method to take all the children of the given Element
3
3
# ' and create a data frame based on the content of each child where each child constitutes a row
4
- # ' and the attributes or elements (including text) will constiture the columns.
5
- # ' It assumes a homeogenous structure and the column names are takes from the first child
4
+ # ' and the attributes or elements (including text) will constitute the columns.
5
+ # ' It assumes a homogeneous structure and the column names are takes from the first child
6
6
# ' @return a data frame
7
7
# ' @param element the element to convert
8
8
Original file line number Diff line number Diff line change @@ -8,9 +8,9 @@ The jdom project (www.jdom.org) provided a lot of initial inspiration for the ap
8
8
approach in the sense that namespace declarations are just another element attribute and name space prefixes are part of the
9
9
element name. This might change in the future but for now this is how it is done.
10
10
11
- You can create and xmlr Document programatically or by parsing text or a file.
11
+ You can create and xmlr Document programmatically or by parsing text or a file.
12
12
13
- # Creating the DOM programatically
13
+ # Creating the DOM programmatically
14
14
To create the following xml
15
15
```
16
16
<table xmlns='http://www.w3.org/TR/html4/'>
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ Creates or updates an existing attribute for the name and value supplied. E.g. `
144
144
This sets all the attributes of the Element to the list given. Note that you MUST supply a named list for this to work.
145
145
Any existing attribute will vanish.
146
146
* ** addAttributes(attributes)**
147
- Similar to setAttributes but will not erase any exsting attributes.
147
+ Similar to setAttributes but will not erase any existing attributes.
148
148
* ** hasAttributes()**
149
149
TRUE if any attributes are defined for the element.
150
150
You can’t perform that action at this time.
0 commit comments