inst/exampleCode/hexBinary.R

library(XMLSchema)
d = readSchema(system.file("samples", "kml21.xsd", package = "XMLSchema"))
XMLSchema:::defClass(d$color)
try(as("red", "color")) # Fails, wrong format
as("00ffb456", "color")
cgu-dados/XMLSchema documentation built on Aug. 20, 2020, 2:18 a.m.