checkXML {FKBL}R Documentation

checks a XML from disc

Description

It takes the name of the file and checks if it is a valid XML containing a valid Knowledge Base.

Usage

 checkXML(file)

Arguments

Takes the file.

file The name of the file.

Value

Return FALSE 0 if fails and TRUE 1 otherwise. A valid XML file would be:
begin{ExampleCode} <?xml version="1.0"?> <!DOCTYPE KnowledgeBase SYSTEM "FKBL.dtd"> <?xml-stylesheet type="text/xsl" href="FKBL.xsl"?> <KnowledgeBase> <Author>Alvaro Gonzalez Alvarez</Author> <Description>Here comes the desired description</Description> <Partition> <ex type="double" len="2">0 1 </ex> </Partition> <Partition> <ex type="double" len="2">0 1 </ex> </Partition> <Partition> <ex type="double" len="2">0 1 </ex> </Partition> <Rule> <antecedent type="int" len="3">0 0 0 </antecedent> <consecuent type="double" len="3">0.65252 0 0 </consecuent> </Rule> <numclasses>3</numclasses> <Error>0.34</Error> </KnowledgeBase> end{ExampleCode}

Examples


 checkXML("sb1.xml")
# -Correct file-
# [1] 1


[Package FKBL version 0.50-4 Index]