checkXML                package:FKBL                R Documentation

_c_h_e_c_k_s _a _X_M_L _f_r_o_m _d_i_s_c

_D_e_s_c_r_i_p_t_i_o_n:

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

_U_s_a_g_e:

      checkXML(file)

_A_r_g_u_m_e_n_t_s:

     Takes the file.

    file: The name of the file.

_V_a_l_u_e:

     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}

_E_x_a_m_p_l_e_s:

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

