biblio.R

library(XMLSchema); sch = readSchema("~/GitWorkingArea/XMLSchema/inst/samples/biblio.xsd")
defineClasses(sch)

tt = newXMLNode("Authors",
                 newXMLNode("author", newXMLNode("firstname", "Duncan"),
                                      newXMLNode("lastname", "Temple Lang")),
                 newXMLNode("author", newXMLNode("firstname", "Deb"),
                                      newXMLNode("lastname", "Nolan")))

as(tt, "Authors")

fromXML(tt)
omegahat/XMLSchema documentation built on Jan. 17, 2024, 7:08 p.m.