text.append("<BIF VERSION=\"0.3\">\n"); text.append("<NETWORK>\n"); text.append("<NAME>" + XMLNormalize(Utils.quote(m_Instances.relationName())) + "</NAME>\n"); for (int iAttribute = 0; iAttribute < m_Instances.numAttributes(); iAttribute++) { text.append("<VARIABLE TYPE=\"nature\">\n"); text.append("<NAME>" + XMLNormalize(Utils.quote(m_Instances.attribute(iAttribute).name())) + "</NAME>\n"); for (int iValue = 0; iValue < m_Instances.attribute(iAttribute) .numValues(); iValue++) { text.append("<OUTCOME>" + XMLNormalize(Utils.quote(m_Instances.attribute(iAttribute).value(iValue))) + "</OUTCOME>\n"); text.append("<DEFINITION>\n"); text.append("<FOR>" + XMLNormalize(Utils.quote(m_Instances.attribute(iAttribute).name())) + "</FOR>\n"); for (int iParent = 0; iParent < m_ParentSets[iAttribute].getNrOfParents(); iParent++) { text .append("<GIVEN>" + XMLNormalize(Utils.quote(m_Instances.attribute( m_ParentSets[iAttribute].getParent(iParent)).name())) + "</GIVEN>\n");
text.append("<BIF VERSION=\"0.3\">\n"); text.append("<NETWORK>\n"); text.append("<NAME>" + XMLNormalize(Utils.quote(m_Instances.relationName())) + "</NAME>\n"); for (int iAttribute = 0; iAttribute < m_Instances.numAttributes(); iAttribute++) { text.append("<VARIABLE TYPE=\"nature\">\n"); text.append("<NAME>" + XMLNormalize(Utils.quote(m_Instances.attribute(iAttribute).name())) + "</NAME>\n"); for (int iValue = 0; iValue < m_Instances.attribute(iAttribute) .numValues(); iValue++) { text.append("<OUTCOME>" + XMLNormalize(Utils.quote(m_Instances.attribute(iAttribute).value(iValue))) + "</OUTCOME>\n"); text.append("<DEFINITION>\n"); text.append("<FOR>" + XMLNormalize(Utils.quote(m_Instances.attribute(iAttribute).name())) + "</FOR>\n"); for (int iParent = 0; iParent < m_ParentSets[iAttribute].getNrOfParents(); iParent++) { text .append("<GIVEN>" + XMLNormalize(Utils.quote(m_Instances.attribute( m_ParentSets[iAttribute].getParent(iParent)).name())) + "</GIVEN>\n");