Examples for 'XML::xmlStructuredStop'


Condition/error handler functions for XML parsing

Aliases: xmlStructuredStop xmlErrorCumulator

Keywords: IO programming

### ** Examples

  tryCatch( xmlTreeParse("<a><b></a>", asText = TRUE, error = NULL),
                 XMLError = function(e) {
                    cat("There was an error in the XML at line",
                          e$line, "column", e$col, "\n",
                         e$message, "\n")
                })
There was an error in the XML at line 1 column 11 
 Opening and ending tag mismatch: b line 1 and a
 

[Package XML version 3.99-0.10 Index]