myTests/error.R

xmlTreeParse("<doc><a> & < <?pi > </doc>")

tryCatch(xmlTreeParse("<doc> <a> </doc>", asText = TRUE), error = function(e) print(class(e)))

tryCatch(xmlTreeParse("<doc> <a> </doc>", asText = TRUE),
                      error = function(e) print(class(e)))
omegahat/XML documentation built on Jan. 17, 2024, 6:47 p.m.