Print Page | Close Window

HOWTO Remove a section from CXTPPropExchange

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=9239
Printed Date: 14 November 2025 at 8:14am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: HOWTO Remove a section from CXTPPropExchange
Posted By: mgampi
Subject: HOWTO Remove a section from CXTPPropExchange
Date Posted: 07 January 2008 at 7:53am
Hi;
I'm using CXTPPropExchangeXML to store informations into XML files. Sometimes it's necessary to remove sections from the XML file without touching the remaining content.
Until now I did not find the right way to remove existing sections irreversible from XML nodes.
Perhaps someone can show me the way to solve this...


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



Replies:
Posted By: Oleg
Date Posted: 08 January 2008 at 1:51am
HI,
just call pPX->EmptySection();


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: mgampi
Date Posted: 08 January 2008 at 3:40am
Hi Oleg;
Does this mean that I have to do it this way:
 
Node.LoadFromFile(...)
pPX=Node.GetSection(...)
pPX->EmptySection()
Node.SaveToFile(...)
 
Since the XML files are really big, I prefer a solution that's not always loading/saving the whole content, when only a small part/section is removed.
 


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022


Posted By: Oleg
Date Posted: 08 January 2008 at 4:13am
Yes.
 
How do you want remove section but not load whole xml ?


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: mgampi
Date Posted: 08 January 2008 at 4:15am
Ok, I see!
I have to keep the whole XML in memory while modifying is active.
Once again, thanks for your help!
 


-------------
Martin

Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0
Platform: Windows 10 v 22H2 (64bit)
Language: VC++ 2022



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net