Skip to content

Commit

Permalink
correção
Browse files Browse the repository at this point in the history
  • Loading branch information
jjesusfilho committed Feb 19, 2024
1 parent 48fab50 commit 59212db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/mni_ler_partes.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@ mni_ler_partes <- function(arquivos = NULL, diretorio = "."){
xml2::xml_find_all("//ns2:polo") |>
xml2::xml_attr("polo")

x <- .x |>
xml2::read_xml()

purrr::map(polos, ~{

xpath <- glue::glue("//ns2:polo[@polo='{.x}']")

p1 <- x |>
xml2::xml_find_first(xpath)

polo <- .x

p1 |>
Expand Down

0 comments on commit 59212db

Please sign in to comment.