Skip to content

Error adding tag after open tag with xmlOutputBuffer #7

@adfi

Description

@adfi

Hi,

I'm getting an error when running the following code:
doc <- xmlOutputBuffer()
doc$addTag("bravo", close=FALSE)
doc$addTag("charlie", "forename")
Error in if (!startingTag && !is.null(namespace) && namespace == nameSpace && :
missing value where TRUE/FALSE needed

This is how xmlOutputBuffer appears in the documentation:
xmlOutputBuffer(dtd=NULL, nameSpace="", buf=NULL, nsURI=NULL, header="<?xml version=\"1.0\"?>")

And this is how it appears in the source code:
xmlOutputBuffer <- function(dtd = NULL, nameSpace = NULL, buf = NULL, nsURI = NULL, header = "<?xml version=\"1.0\"?>") {..}

When calling the function with nameSpace="" the error does not appear.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions