Re: [R] how to add a child to a child in XML

2018-03-22 Thread David L Carlson
Sent: Thursday, March 22, 2018 9:51 AM To: 'Ben Tupper' Cc: 'r-help' Subject: Re: [R] how to add a child to a child in XML Just to clarify and hopefully catch the attention of the maintainer: The newXMLNode function is not mentioned in: https://cran.r-project.org/web/packag

Re: [R] how to add a child to a child in XML

2018-03-22 Thread Bond, Stephen
, March 22, 2018 10:40 AM To: Bond, Stephen Cc: r-help Subject: Re: [R] how to add a child to a child in XML Hi, It's a reasonable question. The answer is that it actually is included, but there are many instances across packages where multiple functions are documented on a single help page.

Re: [R] how to add a child to a child in XML

2018-03-22 Thread Ben Tupper
, 2018 6:18 PM > To: Bond, Stephen > Cc: r-help > Subject: Re: [R] how to add a child to a child in XML > > Hi, > > XML doesn't use the `$` to access child nodes. Instead use either `[name]` > to get a list of children of that name or `[[name]]` to get the just the > f

Re: [R] how to add a child to a child in XML

2018-03-22 Thread Bond, Stephen
: [R] how to add a child to a child in XML Hi, XML doesn't use the `$` to access child nodes. Instead use either `[name]` to get a list of children of that name or `[[name]]` to get the just the first child of that name encountered in the genealogy. Thus for your example... > root$chi

Re: [R] how to add a child to a child in XML

2018-03-21 Thread Ben Tupper
Hi, XML doesn't use the `$` to access child nodes. Instead use either `[name]` to get a list of children of that name or `[[name]]` to get the just the first child of that name encountered in the genealogy. Thus for your example... > root$child1 NULL > root[['child1']] On the other hand,