search for: xmlchildren

Displaying 6 results from an estimated 6 matches for "xmlchildren".

2012 Nov 14
2
How to filter xml value in R?
...<Node2 code ="1"> Second node </Node2> <Node3 code ="1"> Third node </Node3> <Node1 code ="2"> Fourth node </Node1> </Class> for (i in 1:xmlSize()) { print(Class[i]) # how can i filter Node1 ? } by using xmlChildren(Class), i get nodes of Class. How can i filter Node1 and print other elements of Class node? Regards -- View this message in context: http://r.789695.n4.nabble.com/How-to-filter-xml-value-in-R-tp4649465.html Sent from the R help mailing list archive at Nabble.com.
2009 Jun 25
3
exportation of xml file from R
...Factor>Residuals</Factor> <Sum Sq>214.73234</Sum Sq> <Df>1152</Df> <F value>NA</F value> <Pr(>F)>NA</Pr(>F)> </line> </anova:2> </anova> for data I basically used the function xmlNode,addChildren,xmlchildren. I don't know if it's sufficient to recognise a xml file So thanks for your help! Regards, Guillaume [[alternative HTML version deleted]]
2010 Jun 22
0
XMLSchema:::processSchemaTypes() fails with XMLSchema.xsd [was: SSOAP fails with .types[[1]] : subscript out of bounds]
...uot; ", errors, domain = NA) 11: validObject(.Object) 10: initialize(value, ...) 9: initialize(value, ...) 8: new("RestrictedListType", name = name, elType = elType, elementType = type) 7: processSimpleList(type[[1]], xmlGetAttr(type, "name")) 6: FUN(X[[2L]], ...) 5: lapply(xmlChildren(u), processSchemaType, types = types) 4: processSchemaType(el, substitutionGroups = substGroups) 3: FUN(1:156[[11L]], ...) 2: lapply(seq(length = xmlSize(node)), function(i) { el = node[[i]] if (inherits(el, c("XMLCommentNode", "XMLInternalCommentNode")) ||...
2008 Jun 10
1
Parse XML
Could someone provide a link or examples of parsing XML document in R? Few specific questions below: For instance I can retrieve specific nodes using this: node <- xpathApply(xml, "//" %+% xtag, xmlValue) 1) I want to be able to retrieve parent node for this node, how can I do this? getParentNode() does not seem to cut it. 2) How can I retrieve children nodes for a particular
2009 Nov 03
1
help with SSOAP (can't find working examples)
First of all, let me confess that I am a newbie to R and don't know much about the language or the environment. We have a need for plugging in R in our production runtime and need the ability to pull data out of our existing services. I am trying to see if I can take advantage of SSOAP such that we can expose the data via webservices and use SSOAP to call into them. Our runtime is mostly
2011 Jun 30
0
help with interpreting what nnet() output gives:
...> $attributes['date'],"\n") > } > } > } > dumpData(doc) > Perhaps this would work for you. It generates a list of data frames, one for each station. ###### BEGIN ## start with your doc - split it into a list of nodes (one for each child) stn <- xmlChildren(doc) # converts a station node to a data frame getMyStation <- function(x){ # get the name of the station stationName <- xmlAttrs(x)["value"] # a function to extract the date and value getMyRecords <- function(x){ date <- xmlAttrs(x)["date"...