<?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 &amp; CompactMode</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPPropExchangeXMLNode &amp; CompactMode]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 17:45:16 +0000</pubDate>
  <lastBuildDate>Tue, 01 Nov 2016 07:16:25 +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=12009</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 &amp; CompactMode : Is this implemented in v17.3?Can...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=75265&amp;title=cxtppropexchangexmlnode-compactmode#75265</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 12009<br /><strong>Posted:</strong> 01 November 2016 at 7:16am<br /><br />Is this implemented in v17.3?<div><br></div><div>Can I access compact attributes and nodes in&nbsp;CXTPPropExchangeXMLNode?</div><div><br></div><div>Maybe something like this:</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div>&lt;item tag="Hi"&gt;</div><div>CodeJock</div><div>&lt;/item&gt;</div><div><br></div><div><div>CString sText1;</div><div>PX_String(&amp;sec, _T("item/tag"), sText1);</div></div><div><div>CString sText2;</div><div>PX_String(&amp;sec, _T("item"), sText2);</div></div><div><br></div><div>sText1 + " " +sText2 = "Hi CodeJock"</div><div></pre></td></tr></table></div><div><br></div><div><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Quote" alt="Quote" style="vertical-align: text-bottom;" /> </div><div>OK, I got a little wiser. The&nbsp;m_bCompactMode flag is set after the first initialize, e.g. the first time a PX_String is called. So, If someone loads an external XML which requires compact mode for reading, it is not enough to specify&nbsp;px.SetCompactMode(TRUE) after&nbsp;px.LoadFromFile(xmlfile), since this flag is reset by the first PX_String or alike. This is because CompactMode is a value set in the XML by CJ, and not as such a flag you can specify on load. So the trick is to do a dummy PX_String and thereafter set px.SetCompactMode(TRUE), to read the content of an external XML which is formatted with a mix of both attributes and nodes.</div><div></td></tr></table></div><div><br></div><div><div>-cpede</div></div>]]>
   </description>
   <pubDate>Tue, 01 Nov 2016 07:16:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=75265&amp;title=cxtppropexchangexmlnode-compactmode#75265</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropExchangeXMLNode &amp; CompactMode : But what if Compact mode is NOT...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=40673&amp;title=cxtppropexchangexmlnode-compactmode#40673</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 12009<br /><strong>Posted:</strong> 03 September 2008 at 6:04am<br /><br />But what if Compact mode is NOT enabled, how do I access the attributes?<DIV>I guess that this is the most normal case for external XML files, since the Compact attribute/tag is something invented by CodeJock?</DIV><DIV>&nbsp;</DIV><DIV>-cpede</DIV>]]>
   </description>
   <pubDate>Wed, 03 Sep 2008 06:04:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=40673&amp;title=cxtppropexchangexmlnode-compactmode#40673</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropExchangeXMLNode &amp; CompactMode : Hi,i think, if compacteMode is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=40671&amp;title=cxtppropexchangexmlnode-compactmode#40671</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 12009<br /><strong>Posted:</strong> 03 September 2008 at 5:40am<br /><br />Hi,<br><br>i think, if compacteMode is enabled, you can <br>access with <br> PX_String( &amp;px, "AttrName", strName, "");a attribute entry and<br>with<br> PX_String( &amp;px, "", strName, ""); you can access the normal text<br>&lt;Input AttrName="AttributeValue"&gt;Normal Text&lt;/Input&gt;<br><br>&nbsp; Jimmy<br><br>]]>
   </description>
   <pubDate>Wed, 03 Sep 2008 05:40:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=40671&amp;title=cxtppropexchangexmlnode-compactmode#40671</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropExchangeXMLNode &amp; CompactMode : Please, how do I mix Compact modes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=40668&amp;title=cxtppropexchangexmlnode-compactmode#40668</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 12009<br /><strong>Posted:</strong> 03 September 2008 at 4:54am<br /><br />Please, how do I mix Compact modes in one XML file?<DIV>&nbsp;</DIV><DIV>-cpede</DIV>]]>
   </description>
   <pubDate>Wed, 03 Sep 2008 04:54:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=40668&amp;title=cxtppropexchangexmlnode-compactmode#40668</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropExchangeXMLNode &amp; CompactMode : Is there a simple way to enable...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=40642&amp;title=cxtppropexchangexmlnode-compactmode#40642</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 12009<br /><strong>Posted:</strong> 01 September 2008 at 6:51am<br /><br />Is there a simple way to enable ompact mode without CompactMode attribute&nbsp; ?<br><br>&nbsp; Jimmy<br><br>Now i do this<br>class CXTPPropExchangeXMLNodeEx : public CXTPPropExchangeXMLNode<br>{<br>public:<br>&nbsp;&nbsp;&nbsp; CXTPPropExchangeXMLNodeEx(BOOL bLoading, CXTPDOMNodePtr xmlParentNode, LPCTSTR lpszSection)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; : CXTPPropExchangeXMLNode(bLoading, xmlParentNode, lpszSection)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; bool DeleteAttr(LPCTSTR lpszEntry)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; USES_CONVERSION;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPDOMNodePtr xmlNodeEntryPtr;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; XTPXML::IXMLDOMNamedNodeMapPtr map;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_xmlSectionNode-&gt;get_attributes(&amp;map);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; HRESULT hr = map-&gt;removeNamedItem(CT2BSTR(lpszEntry), &amp;xmlNodeEntryPtr);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (FAILED(hr))<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return false;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return true;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; virtual BOOL OnBeforeExchange()<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; BOOL bOk = __super::OnBeforeExchange();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SetCompactMode(TRUE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return bOk;<br>&nbsp;&nbsp;&nbsp; }<br>};<br>]]>
   </description>
   <pubDate>Mon, 01 Sep 2008 06:51:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=40642&amp;title=cxtppropexchangexmlnode-compactmode#40642</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropExchangeXMLNode &amp; CompactMode : Sorry, but can you be a bit more...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=40615&amp;title=cxtppropexchangexmlnode-compactmode#40615</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 12009<br /><strong>Posted:</strong> 30 August 2008 at 7:10am<br /><br />Sorry, but can you be a bit more precise?<DIV>How can I read the compact name tag?</DIV><DIV>And what if I have multiple compact tags? And mixing?</DIV><DIV>&nbsp;</DIV><DIV>cpede</DIV>]]>
   </description>
   <pubDate>Sat, 30 Aug 2008 07:10:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=40615&amp;title=cxtppropexchangexmlnode-compactmode#40615</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropExchangeXMLNode &amp; CompactMode : Thanks Jimmy  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=40608&amp;title=cxtppropexchangexmlnode-compactmode#40608</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 12009<br /><strong>Posted:</strong> 29 August 2008 at 6:11pm<br /><br />Thanks<br><br>&nbsp; Jimmy<br><br>]]>
   </description>
   <pubDate>Fri, 29 Aug 2008 18:11:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=40608&amp;title=cxtppropexchangexmlnode-compactmode#40608</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropExchangeXMLNode &amp; CompactMode : With Compact mode can: PX_String(...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=40603&amp;title=cxtppropexchangexmlnode-compactmode#40603</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12009<br /><strong>Posted:</strong> 29 August 2008 at 4:12pm<br /><br />With Compact mode can: PX_String( &amp;px, "", strName, "");<BR>]]>
   </description>
   <pubDate>Fri, 29 Aug 2008 16:12:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=40603&amp;title=cxtppropexchangexmlnode-compactmode#40603</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropExchangeXMLNode &amp; CompactMode : Hi,Mean that i can&amp;#039;t use...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=40583&amp;title=cxtppropexchangexmlnode-compactmode#40583</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=233">jimmy</a><br /><strong>Subject:</strong> 12009<br /><strong>Posted:</strong> 29 August 2008 at 5:46am<br /><br />Hi,<br><br>Mean that i can't use this ?<br><br>&lt;FB Name="AND"&gt;<br>&nbsp; &lt;Input Name="Input1&gt;Some Text&lt;/Input&gt;<br>&nbsp; &lt;Input Name="Input1&gt;Some other Text&lt;/Input&gt;<br>&lt;/FB&gt;<br><br>Here i have attribute (Name) and other text.<br><br>&nbsp; Jimmy<br><br><br>]]>
   </description>
   <pubDate>Fri, 29 Aug 2008 05:46:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=40583&amp;title=cxtppropexchangexmlnode-compactmode#40583</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPPropExchangeXMLNode &amp; CompactMode : CompactMode switch way to store...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=40562&amp;title=cxtppropexchangexmlnode-compactmode#40562</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12009<br /><strong>Posted:</strong> 28 August 2008 at 1:23pm<br /><br />CompactMode&nbsp; switch way to store data:<DIV>&nbsp;</DIV><DIV>with compact mode:</DIV><DIV>&nbsp;</DIV><DIV>&lt;FB Name="AND" /&gt;</DIV><DIV>&nbsp;</DIV><DIV>without:</DIV><DIV>&lt;FB&gt; &lt;Name&gt;AND&lt;/Name&gt; &lt;/FB&gt;</DIV>]]>
   </description>
   <pubDate>Thu, 28 Aug 2008 13:23:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12009&amp;PID=40562&amp;title=cxtppropexchangexmlnode-compactmode#40562</guid>
  </item> 
 </channel>
</rss>