R/R/preprocess_response.R

Defines functions preprocess_response

#' @importFrom XML xmlTreeParse xmlRoot xmlToList
preprocess_response <- function(x) {
    y <- XML::xmlRoot(XML::xmlTreeParse(x))

    y <- list(
        request = XML::xmlToList(y[['request']]),
        message = XML::xmlToList(y[['message']]),
        response = y[['response']]
    )

    return(y)
}
stharms/realEstAnalytics.r documentation built on May 14, 2019, 1:57 a.m.