Displaying 1 result from an estimated 1 matches for "ripsnorter".
2012 Oct 29
1
XML namespace control
...#39;xmlns:udf = "http://blah.blah.com/blah"' doesn't appear.
I would like to create a similar node from scratch, but I can't seem to define the node with a namespace without providing the namespace definition.
library(XML)
node1 <- newXMLNode("storm", "ripsnorter",
namespace = "weather",
namespaceDefinitions = c(weather = "http://my.weather.com/events"),
attrs = c(type = "hurricane", name = "Sandy"))
node1
# this returns the new node with the namespace prefix (which I want)
# and the definition (which...