You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear all,
Thanks for your great package, it has helped me a lot!.
I don't know if this is the place to ask you, but after upgrading to version R 4.0.0, the write_xml function no longer works. Returns NULL without writing any xml files.
Thank you very much for any information you can provide to this macOS user.
x<- read_xml("<body> <p>Some <b>text</b>.</p> <p>Some <b>other</b> <b>text</b>.</p> <p>No bold here!</p></body>")
# Get only words in boldboldWords<- xml_find_all(x, ".//b")
# Add each node in nodeset to a new documentboldDocument= xml_new_root('newBody')
for (childinboldWords) {
xml_add_child(boldDocument, child, 'newBody')
}
# Save subset xml in a new filetmp= tempfile(fileext=".xml")
write_xml(boldDocument, file=tmp, options='as_xml')
The text was updated successfully, but these errors were encountered:
munozav
changed the title
write_xml does not work after R updated
write_xml does not work with R 4.0.0
May 5, 2020
library(xml2)
x<- read_xml("<body> <p>Some <b>text</b>.</p> <p>Some <b>other</b> <b>text</b>.</p> <p>No bold here!</p></body>")
# Get only words in boldboldWords<- xml_find_all(x, ".//b")
# Add each node in nodeset to a new documentboldDocument= xml_new_root('newBody')
for (childinboldWords) {
xml_add_child(boldDocument, child, 'newBody')
}
# Save subset xml in a new filetmp= tempfile(fileext=".xml")
write_xml(boldDocument, file=tmp, options='as_xml')
#> NULL
readLines(tmp)
#> [1] "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" #> [2] "<newBody><b>text</b><b>other</b><b>text</b></newBody>"
Dear all,
Thanks for your great package, it has helped me a lot!.
I don't know if this is the place to ask you, but after upgrading to version R 4.0.0, the write_xml function no longer works. Returns NULL without writing any xml files.
Thank you very much for any information you can provide to this macOS user.
The text was updated successfully, but these errors were encountered: