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)
}
xiyuansun/realEstAnalytics documentation built on May 7, 2019, 7:12 p.m.