Skip to content

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

@cole-johanson

Description

@cole-johanson

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions