Shared Memory to XML Config File

J

Jason

I'm working on a project to cleanup our current XML handling code. We
basically just dump our shared memory information (a set of C structs that
represent configuration data) to an XML configuration file and vice-versa.
The shared memory is accessed through accessor functions, so I don't have
direct access to the structs. The goal is to create a clean layer between
the shared memory and our XML configuration file. I'm curious if anyone has
done anything like this or has anything to share about doing this in a
clean, extensible way.

I've looked online, but haven't been able to find anything helpful. I've
been reading up on libxml2 (this is the library we use) and in of itself, it
seems to be overly complex for what we need to do. It's probably the right
tool, but I think I would need to create wrappers around it to read/write
xml to make it simpler to update when we add new structures to our shared
memory.

I hope this is the right place to be asking these questions, if not, let me
know where I should be posting. Any help is much appreciated. Thanks.

Jason
 
M

Michael Sweet

Jason said:
...
I've looked online, but haven't been able to find anything helpful.
I've been reading up on libxml2 (this is the library we use) and in
of itself, it seems to be overly complex for what we need to do.
It's probably the right tool, but I think I would need to create
wrappers around it to read/write xml to make it simpler to update
when we add new structures to our shared memory.

You might want to look at my Mini-XML library:

http://www.easysw.com/~mike/mxml/

It is designed exactly for this sort of thing...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top