<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : CXTPPropExchangeXMLNode What am i doing wrong</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPPropExchangeXMLNode What am i doing wrong]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 07:00:10 +0000</pubDate>
  <lastBuildDate>Thu, 29 Nov 2012 11:44:05 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=20351</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[CXTPPropExchangeXMLNode What am i doing wrong : uploads/5155/Experiments.zip  Hi...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=20351&amp;PID=69307&amp;title=cxtppropexchangexmlnode-what-am-i-doing-wrong#69307</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5155">schwinn</a><br /><strong>Subject:</strong> 20351<br /><strong>Posted:</strong> 29 November 2012 at 11:44am<br /><br /><a href="http://forum.codejock.com/uploads/5155/Experiments.zip" target="_blank">uploads/5155/Experiments.zip</A><DIV>&nbsp;</DIV><DIV>Hi All</DIV><DIV>&nbsp;</DIV><DIV>What am i doing wrong?</DIV><DIV>I cannot get my code to read the attributes within my Experiment Nodes. I have included my XML file and here is my code. Any help please but not to suggest the sample application because this has a parent Node called Item and its child nodes are called Item. </DIV><DIV>&nbsp;</DIV><DIV>So my code is....</DIV><DIV>&nbsp;</DIV><DIV>BOOL StandardTreeCtrlDlg::OnInitDialog()<BR>{<BR>&nbsp;CDialogEx::OnInitDialog();</DIV><DIV>&nbsp;CXTPPropExchangeXMLNode px(TRUE, 0, _T("ExperimentExplorer"));&nbsp;&nbsp; // To serialize to XML file<BR>&nbsp;if (px.LoadFromFile(L"C:\\Experiments.xmlw"))<BR>&nbsp;{</DIV><DIV>&nbsp;&nbsp;HTREEITEM hItem = m_Tree.InsertItem(_T("My Experiments"), 0, 0);</DIV><DIV>&nbsp;&nbsp;CXTPPropExchangeSection sec(px.GetSection(_T("Experiments")));<BR>&nbsp;&nbsp;DoExchangeTree(&amp;sec, hItem);<BR>&nbsp;}&nbsp;</DIV><DIV>&nbsp;return TRUE;&nbsp; // return TRUE unless you set the focus to a control<BR>&nbsp;// EXCEPTION: OCX Property Pages should return FALSE<BR>}</DIV><DIV><BR>void StandardTreeCtrlDlg::DoExchangeTree(CXTPPropExchange* pPX, HTREEITEM hItemRoot)<BR>{</DIV><DIV>&nbsp;if (pPX-&gt;IsStoring())<BR>&nbsp;{</DIV><DIV>&nbsp;}<BR>&nbsp;else<BR>&nbsp;{</DIV><DIV><BR>&nbsp;&nbsp;CXTPPropExchangeEnumeratorPtr pEnumerator(pPX-&gt;GetEnumerator( _T("Experiment")));<BR>&nbsp;&nbsp;POSITION pos = pEnumerator-&gt;GetPosition(0);<BR>&nbsp;&nbsp;while (pos)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;CString strText;<BR>&nbsp;&nbsp;&nbsp;PX_String(pPX, _T("Name"), strText); // gets nothing</DIV><DIV>&nbsp;&nbsp;&nbsp;CXTPPropExchangeSection sec(pEnumerator-&gt;GetNext(pos));</DIV><DIV>&nbsp;&nbsp;&nbsp;PX_String(pPX, _T("Name"), strText); // still gets nothing</DIV><DIV>&nbsp;&nbsp;&nbsp;HTREEITEM hItemChild = m_Tree.InsertItem(str, 0,0, hItemRoot);</DIV><DIV>&nbsp;&nbsp;&nbsp;DoExchangeTree(&amp;sec, hItemChild);<BR>&nbsp;&nbsp;}<BR>&nbsp;&nbsp;<BR>&nbsp;}<BR>}</DIV><DIV>&nbsp;</DIV><DIV>Thanks for any help</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 29 Nov 2012 11:44:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=20351&amp;PID=69307&amp;title=cxtppropexchangexmlnode-what-am-i-doing-wrong#69307</guid>
  </item> 
 </channel>
</rss>