search for: xmlname

Displaying 10 results from an estimated 10 matches for "xmlname".

Did you mean: myname
2012 Nov 15
1
problem with XML package
Hi List, I have used XML in R version 2.9.2. The code is working fine using Rv2.9.2 and its related XML package. Now I am using Rv2.13.1 and its related XML package, but I get the following error: Error in UseMethod("xmlName", node) : no applicable method for 'xmlName' applied to an object of class "NULL" Any idea? Thanks Arvin [[alternative HTML version deleted]]
2010 Jun 22
0
XMLSchema:::processSchemaTypes() fails with XMLSchema.xsd [was: SSOAP fails with .types[[1]] : subscript out of bounds]
...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")) || xmlName(el) %in% c("import", "include")) return(NULL) if (xmlName(el) == "annotation") return(NULL) if (xmlName(el) == "schema") { if (xmlSize(el) == 1 && names(el) == "schema") el = e...
2023 Mar 30
0
About libvirt domain dump state and persistent state
...ins? api from libvirt tell me the vdf or 0x0a is empty, but when attach it with the vdf device or 0x0a address, qemu return the error duplicated with vdf or PCI address are double used: 2021-09-28T16:00:03.816682107-07:00 stderr F I0928 23:00:03.816558 1 cephvolume.go:73] attach disk &{XMLName:{Space: Local:} Device:disk RawIO: SGIO: Snapshot: Model: Driver:0xc00073b420 Auth:0xc000f49e40 Source:0xc000159860 BackingStore:<nil> Geometry:<nil> BlockIO:<nil> Mirror:<nil> Target:0xc000a58b40 IOTune:0xc00019b970 ReadOnly:<nil> Shareable:<nil> Transient:<...
2011 Mar 30
1
Package XML: Parse Garmin *.tcx file problems
...a single node comes up empty (even though there is data there. One question: Has anybody succeeded parsing Garmin .tcx (xml) files? Thanks! Michael _______________________ >doc2 = xmlRoot(xmlTreeParse("HR.reduced3.tcx",useInternalNodes = TRUE)) >xpathApply(doc2, "//*", xmlName) [[1]] [1] "TrainingCenterDatabase" [[2]] [1] "Activities" [[3]] [1] "Activity" [[4]] [1] "Id" [[5]] [1] "Lap" [[6]] [1] "TotalTimeSeconds" > xpathApply(doc2, "//TotalTimeSeconds", xmlValue) list() >
2013 Jan 22
2
Creating a Data Frame from an XML
...ND="FORD" NUM="1" YEAR="2007" VALUE="17500" /> <row BRAND="GMC" NUM="1" YEAR="2008" VALUE="22000" /> </data> *R Code:* doc< -xmlInternalTreeParse ("Sample2.xml") top <- xmlRoot (doc) xmlName (top) names (top) art <- top [["row"]] art ** *Output:* > art<row BRAND="GMC" NUM="1" YEAR="1999" VALUE="10000"/> This is where I am having difficulties. I am unable to "access" additional rows; ( i.e. <row BRAND=&quo...
2008 May 02
1
How to parse XML
I would like to learn how to parse a mixed text/xml document I downloaded from the sec.gov website (see example below). I would like to parse this to get the value for each xml tag and then access it within R, but I don't know much about xml so I don't even know where to start debugging the errors I am getting in this example code. Can anyone help me get started? Thanks, Roger ftp
2005 May 27
1
xmlAttrs and problems with reading node attributes of XML file (b ug?)
...=\"a\" xmlns:xsi=\"b\" xsi:schemaLocation=\"c\">\n", "<parentFile a=\"a\" b=\"b\" />\n", "</mzXML>\n") cat(xmlFile) a = function(x,...){ cat("Attributes of ", xmlName(x), ": "); print(xmlAttrs(x)); cat("\n"); NULL } xmlTreeParse(file=xmlFile, asText=TRUE, handlers=list("startElement"=a) ) And its output: <?xml version="1.0" encoding="ISO-8859-1"?> <mzXML xmlns="a&quo...
2013 Jan 22
1
Create a Data Frame from an XML
...ND="FORD" NUM="1" YEAR="2007" VALUE="17500" /> <row BRAND="GMC" NUM="1" YEAR="2008" VALUE="22000" /> </data> *R Code:* doc< -xmlInternalTreeParse ("Sample2.xml") top <- xmlRoot (doc) xmlName (top) names (top) art <- top [["row"]] art ** *Output:* > art<row BRAND="GMC" NUM="1" YEAR="1999" VALUE="10000"/> * * This is where I am having difficulties. I am unable to "access" additional rows; ( i.e. <row BRAND=&...
2005 May 10
0
Fwd: Extract just some fields from XML]
...nation at the end. >Hi Gregor. > >Here is a function that will collect all of the nodes in the >XML document whose names are in the vector elementNames > >getElements = >function(elementNames) >{ > els = list() > > startElement = function(node, ...) { > > if(xmlName(node) %in% elementNames) > els[[length(els) + 1]] <<- node > > node > } > > list(startElement = startElement, els = function() els) >} > >So you can use it as > > myHandlers = getElements("PubDate") > xmlTreeParse(URL, handlers = myHandle...
2008 Jun 25
0
Memory allocation failed: Copying Node
...[[1]])))) } else { if (n==1) assign("out","NA") else assign("out",rbind(out,"NA")) } } } return (out) } xValAll <- function(xtag) xpathApply(xml, "//" %+% xtag, xmlValue) xParent<- function(xtag) xmlName(xpathApply(xml, paste("//" %+% xtag, "/../.."))[[1]]) #End of Functions -- View this message in context: http://www.nabble.com/Memory-allocation-failed%3A-Copying-Node-tp18114389p18114389.html Sent from the R help mailing list archive at Nabble.com.