Public bug reported: The code:
library(XML) z = xmlTree() z$addNode("r:data", namespace = c(r = "http://www.r-project.org", omg = "http://www.omegahat.org"), close = FALSE) x = rnorm(3) z$addNode("r:numeric", attrs = c("omg:length" = length(x))) cat(saveXML(z)) gives this output: <?xml version="1.0"?> <data xmlns:r="http://www.r-project.org" xmlns:omg="http://www.omegahat.org"><numeric omg:length="3"/></data> This is wrong. The root element lost its namespace in the serialization. It should have looked like: <?xml version="1.0"?> <r:data xmlns:r="http://www.r-project.org" xmlns:omg="http://www.omegahat.org"><r:numeric omg:length="3"/></r:data> ** Affects: r-cran-xml (Ubuntu) Importance: Undecided Status: New -- saveXML output does properly reflect XML document namespace https://bugs.launchpad.net/bugs/191502 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs