omegahat / XML

The XML package for R
Other
20 stars 11 forks source link

Error adding tag after open tag with xmlOutputBuffer #7

Open adfi opened 8 years ago

adfi commented 8 years ago

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.