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 1 1671
Jason wrote: ... 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...
--
_______________ _______________ _______________ _______________ __________
Michael Sweet, Easy Software Products mike at easysw dot com
Internet `Printing and Publishing Software http://www.easysw.com This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Srijit Kumar Bhadra |
last post by:
Hello,
Here is some sample code with pywin32 build 203 and ctypes 0.9.6.
Best regards,
/Srijit
File: SharedMemCreate_Mutex_win32all.py
# This application should be used with SharedMemAccess_Mutex_ctypes.py
or SharedMemAccess_Mutex_win32all.py
|
by: Jim |
last post by:
Hello,
I have a broken server that we are going to be moving off to a new server
with a new version of DB2 but here is what I have right now:
RedHat 7.0 (2.2.24smp)
DB2 v6.1.0.40
I am getting this error when I try to run the command 'db2 "backup database
dbname online to /opt/BACKUP"' on my 3 databases:
SQL1042C An unexpected system error occurred. SQLSTATE=58004
|
by: Invalidlastname |
last post by:
Hi,
We developed some assemblies which use EnterpriseServices queued components.
In order to use EnterpriseServices, these assemblies need to be installed
into GAC. I used the pre-build and post-build events to automate GAC
installation processes and the asp.net application has "copy to local" set
to false for the references of these shared assemblies.
However, every time we made the changes to the shared assemblies, we had to
restart...
|
by: Javier Martinez |
last post by:
Hi
I have asp application in a machine with a virtual directory referring a
shared directory in another machine
When I try to load any aspx page of my portal I get the following error:
Mensaje de error del analizador: We can't load the type 'JULIAN.Global'.
|
by: Joe Fallon |
last post by:
1. I have a Base class that has a certain amount of functionality.
2. Then I have a CodeSmith generated class that inherits from the Base class
and adds functionality.
3. Since I want to be able to re-generate the classes on level 2 I have a
3rd level that inherits from them and implements specific hand coded
methods.
4. My colleague asked me to create a 4th level class that inherits the 3rd
level class so he can write custom...
| |
by: a |
last post by:
Hello Gang,
I am in a bit of confusion regarding a half completed application I am
writing. It is an MDI app, so I have a main form (frmMain) that is always
open.
I am looking for a 'Best Practice' here. I have a class (config.vb) that
manages an XML file with the applications configuration settings. I need to
access it from many places in the app. I have other similar classes
(onlineOffline.vb, dataAccess.vb, etc.) I only need...
|
by: Thomas F. O'Connell |
last post by:
In using pg_dump to dump an existing postgres database, I get the
following:
pg_dump: WARNING: out of shared memory
pg_dump: attempt to lock table <table name> failed: ERROR: out of
shared memory
HINT: You may need to increase max_locks_per_transaction.
postgresql.conf just has the default of 1000 shared_buffers. The
database itself has thousands of tables, some of which have rows
|
by: MAG1301 |
last post by:
I've detected memory leaks in our huge .NET 1.1 C# application but
couldn't localize them directly. So I've reduced the code to the
following console application:
using System;
using System.IO;
namespace MemLeak
{
class MemLeak
|
by: jdlwright |
last post by:
Hi, a customer is using our fairly memory intensive web app. in a
shared hosting environment
and the other day their host 'banned' (I think they just killed the
process) them for memory abuse.
Our app. has been profiled with SciTech's Mem Profiler, and it seems
that some of the issues relate to .NET bugs, but are alleviated by use
of System.GC.Collect(). I'm under the impression that it's generally
bad form to call this yourself, but at...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |