This is a PHP forum not a C... but anyway..
I think that you will have to hard code it everytime cuz there is no way for a c program to examine the structure of a linked list...
Why not try putting it in an array or something...
unsigned char* myStrArray[50];
then you can just loop through the array like: (the method I'm using now is not supported by all compilators)
unsigned char* myXML = "<xml header here>";
for(i=0;i < 50; i++)
{
myXML .= (unsigned char)"<object>".myStrArray.(unsigned char)"</object>\n";
}
Hope this helps
Andreas