Learn R Programming

rLDCP (version 1.0.2)

validate_xml: Validate the XML file

Description

The function takes as input the path to a XML file that contains a LDCP system. Then it validates the LDCP system.

Usage

validate_xml(xmlfile, schema = NULL)

Arguments

xmlfile

is the XML source path file. E.g. "/folder/ldcp_system.xml".

schema

is the ldcp schema path file. By default is "ldcpSchema.xsd".

Value

If the process ends without error, the user will receive the message that indicates that the XML is valid. Otherwise, the user will receive the detailed list of errors.

Examples

Run this code
# NOT RUN {
validate_xml('extdata/comfortableroom.xml')
# }
# NOT RUN {
## The xml is valid

# }

Run the code above in your browser using DataLab