I’m currently trying to recursively loop through a tree structure and serialize it to a string using (the language) C. I’m a real novice when it comes to C (Coming from a Java, C#, action-script background) and I’m having trouble getting to grips with things in general.
Should I use a library to help generate the XML? How do I implement recursion using C?
Thanks
Yes. libxml, minixml and others. Just google to know others, but I’d go with libxml.
Well, implementing recursion itself is really simple. For example, this is recursive:
The problem comes with how complex you want to be. But for XML, use a library.