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")
omegahat/XMLSchema documentation built on Jan. 17, 2024, 7:08 p.m.