xml_validate | R Documentation |
Validate an XML document against an XML 1.0 schema.
xml_validate(x, schema)
x |
A document, node, or node set. |
schema |
an XML document containing the schema |
TRUE or FALSE
# Example from https://msdn.microsoft.com/en-us/library/ms256129(v=vs.110).aspx
doc <- read_xml(system.file("extdata/order-doc.xml", package = "xml2"))
schema <- read_xml(system.file("extdata/order-schema.xml", package = "xml2"))
xml_validate(doc, schema)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.