Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > General Discussion
  New Posts New Posts RSS Feed - XML parsing
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XML parsing

 Post Reply Post Reply
Author
Message
Algae View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 January 2007
Location: United States
Status: Offline
Points: 217
Post Options Post Options   Thanks (0) Thanks(0)   Quote Algae Quote  Post ReplyReply Direct Link To This Post Topic: XML parsing
    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.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.