search for: xmltxt

Displaying 3 results from an estimated 3 matches for "xmltxt".

Did you mean: xmltext
2008 Jun 17
2
try catch block
How can I use the try catch block such that if this statement fails xml <- xmlTreeParse(xmlTxt, useInternal=TRUE) then this statement is executed xml <- xmlMalFormed() ? This code does not work but assuming its somewhere along these lines: tryCatch(xml <- xmlTreeParse(xmlTxt, useInternal=TRUE), xml <- xmlMalFormed(f1)) -- View this message in context: http://www.nabble.com/t...
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
2008 Jun 25
0
Memory allocation failed: Copying Node
...l=ftp, destfile=fileout)) } txt <- readLines(filein) if(length(txt) == 0){ next } xmlInside <- grep("</*XML", txt) xmlTxt <- txt[seq(xmlInside[1]+1, xmlInside[2]-1)] xml <- tryCatch(xmlMalformed2(filein), error = function(err) unProcessedFiles(filein) ) if(is.null(xml)) next if(is.null(xml)) { stop("File not processed: &q...