XML parsing |
Post Reply |
Author | |
Algae
Senior Member Joined: 08 January 2007 Location: United States Status: Offline Points: 217 |
Post Options
Thanks(0)
Posted: 06 September 2011 at 2:20pm |
Does anyone know of a better way to parse a standard XML file where every entry is a section and there are no subsections using the Codejock Toolkit?
Right now I have this sort of thing where I have to release the parse section every time. This seems clunky to me. Usually when something is this goofy, I'm making a mistake or not coding effectively: void CResultFile::DoPropExchange(CXTPPropExchange* pPX) { CXTPPropExchange *pSec = NULL; pSec = pPX->GetSection(_T("RESULT")); PX_String(pSec, _T(""), m_result, _T("")); CMDTARGET_RELEASE(pSec); pSec = pPX->GetSection(_T("TYPE")); PX_String(pSec, _T(""), m_type, _T("")); CMDTARGET_RELEASE(pSec); ... } If anyone could help with some tips it would be greatly appreciated. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |