Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read_xml "NOWARNING" option does not suppress namespace warnings #385

Open
cole-johanson opened this issue Mar 14, 2023 · 0 comments
Open
Labels
bug an unexpected problem or unintended behavior

Comments

@cole-johanson
Copy link

The "NOWARNING" options states it should suppress warning reports from the libxml2 parser. It does not suppress warnings about the namespace prefix on nodes.

The use-case here is the WordProcessingML from Microsoft's Open XML SDK.

xml2::read_xml("<w:t></w:t>", options = "NOWARNING")
#> Warning in read_xml.raw(charToRaw(enc2utf8(x)), "UTF-8", ..., as_html =
#> as_html, : Namespace prefix w on t is not defined [201]
#> {xml_document}
#> <w:t>
@hadley hadley added the bug an unexpected problem or unintended behavior label Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants