Displaying 1 result from an estimated 1 matches for "parsexmlentrynodeset".
2011 Feb 24
1
Objects must be passed as an argument or generated in the function, right?
...R, and found this code confusing. It is from the bioconductor
package "RpsiXML".
entryCount <- length(nodes)
The "nodes" object is either the argument nor generated in the function.
How can R find the "nodes" object? What am I missing here?
Thanks
Zheng Jk
parseXmlEntryNodeSet <- function(psimi25file, psimi25source, verbose=TRUE) {
psimi25Doc <- xmlTreeParse(psimi25file, useInternalNodes = TRUE)
psimi25NS <- getDefaultNamespace(psimi25Doc)
namespaces <- c(ns = psimi25NS)
entry <- getNodeSet(psimi25Doc, "/ns:entrySet/ns:entry", namespace...