search for: newxmldoc

Displaying 5 results from an estimated 5 matches for "newxmldoc".

2018 Mar 22
1
how to add a child to a child in XML
...ere are many instances across packages where multiple functions are documented on a single help page. The following brings up such a page... (for XML_3.98-1.9) > library(XML) > ?newXMLNode You can see the same on line... https://www.rdocumentation.org/packages/XML/versions/3.98-1.9/topics/newXMLDoc You have dig in to find it. If you are just starting out with XML, you might want to spend some time comparison shopping with the xml2 package. https://www.rdocumentation.org/packages/xml2/versions/1.2.0 I like each one, and I use both XML and xml2 (not at the same time). I have been slowly migr...
2018 Mar 22
2
how to add a child to a child in XML
Big thanks. newXMLNode works great. Wonder why it is not included in the documentation. There is newXMLDoc and newXMLNamespace, but no mention of newXMLNode. Stephen From: Ben Tupper [mailto:btupper at bigelow.org] Sent: Wednesday, March 21, 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...
2018 Mar 22
0
how to add a child to a child in XML
...ere are many instances across packages where multiple functions are documented on a single help page. The following brings up such a page... (for XML_3.98-1.9) > library(XML) > ?newXMLNode You can see the same on line... https://www.rdocumentation.org/packages/XML/versions/3.98-1.9/topics/newXMLDoc You have dig in to find it. If you are just starting out with XML, you might want to spend some time comparison shopping with the xml2 package. https://www.rdocumentation.org/packages/xml2/versions/1.2.0 <https://www.rdocumentation.org/packages/xml2/versions/1.2.0> I like each one, and I...
2018 Mar 21
0
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$child1 NULL > root[['child1']] <child1 name1="A" name2="B" name3="C"/> On the other hand, you might
2018 Mar 21
2
how to add a child to a child in XML
I am trying to add a child to a child using XML package in R. the following fails library(XML) node1 <- c("val1","val2","val3") names(node1) <- c("att1","att2","att3") root <- xmlNode("root", attrs=node1) node2 <- LETTERS[1:3] names(node2) <- paste("name",1:3,sep="") root <-