- Better XML output for variables section.
This commit is contained in:
parent
01a45f87d2
commit
5c0c5d3333
16
src/xmlout.c
16
src/xmlout.c
@ -327,10 +327,21 @@ xmlTermType (const Term t)
|
|||||||
t->subst = NULL;
|
t->subst = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
xmlindent++;
|
||||||
|
xmlPrint("<term>");
|
||||||
|
xmlindent++;
|
||||||
xmlIndentPrint ();
|
xmlIndentPrint ();
|
||||||
xmlTermPrint (t);
|
xmlTermPrint (t);
|
||||||
printf ("\n");
|
printf ("\n");
|
||||||
|
xmlindent--;
|
||||||
|
xmlPrint("</term>");
|
||||||
|
|
||||||
|
xmlPrint("<type>");
|
||||||
|
xmlindent++;
|
||||||
xmlTermlistPrint (t->stype);
|
xmlTermlistPrint (t->stype);
|
||||||
|
xmlindent--;
|
||||||
|
xmlPrint("</type>");
|
||||||
|
xmlindent--;
|
||||||
|
|
||||||
if (realTermVariable (t))
|
if (realTermVariable (t))
|
||||||
{
|
{
|
||||||
@ -356,10 +367,15 @@ xmlVariable (const System sys, const Term variable, const int run)
|
|||||||
}
|
}
|
||||||
printf ("\" run=\"%i\">\n", run);
|
printf ("\" run=\"%i\">\n", run);
|
||||||
xmlindent++;
|
xmlindent++;
|
||||||
|
|
||||||
|
xmlPrint ("<name>");
|
||||||
xmlTermType (variable);
|
xmlTermType (variable);
|
||||||
|
xmlPrint ("</name>");
|
||||||
if (variable->subst != NULL)
|
if (variable->subst != NULL)
|
||||||
{
|
{
|
||||||
|
xmlPrint ("<substitution>");
|
||||||
xmlTermType (deVar (variable));
|
xmlTermType (deVar (variable));
|
||||||
|
xmlPrint ("</substitution>");
|
||||||
}
|
}
|
||||||
xmlindent--;
|
xmlindent--;
|
||||||
xmlPrint ("</variable>");
|
xmlPrint ("</variable>");
|
||||||
|
Loading…
Reference in New Issue
Block a user