Displaying 1 result from an estimated 1 matches for "psimi25n".
Did you mean:
psimi25ns
2011 Feb 24
1
Objects must be passed as an argument or generated in the function, right?
...t 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", namespaces)
if(verbose)
statusDisplay(paste(length(entry),"Entries found\n",sep=" "))
entryCount <- length(nodes)
en...