<rss version="2.0">
<channel>
<title>firstobject.com discussion</title>
<link>http://www.firstobject.com/discussion.xml</link>
<description>Discussion and Beta Update Feed</description>
<language>en-us</language>
<lastBuildDate>Sat, 12 Mar 2011 22:40:00 GMT</lastBuildDate>
<ttl>180</ttl>
<image>
<title>firstobject.com comments</title>
<width>142</width>
<height>18</height>
<link>http://www.firstobject.com/</link>
<url>http://www.firstobject.com/firstobjectNews.gif</url>
</image>
<item>
<title>11.3 Bug: trim whitespace removes escaped value</title>
<link>http://www.firstobject.com/dn_markknown.htm#20110312224000</link>
<guid isPermaLink="false">dn_markknown.htm#20110312224000</guid>
<pubDate>Sat, 12 Mar 2011 22:40:00 GMT</pubDate>
<category>CMarkup Articles</category>
<description><![CDATA[
<p>Another bug in <code>MDF_TRIMWHITESPACE</code> and <code>MDF_COLLAPSEWHITESPACE</code>. With one of these flags turned on in <a class="codelink" href="http://www.firstobject.com/dn_markSetDocFlags.htm">SetDocFlags</a>, <a class="codelink" href="http://www.firstobject.com/dn_markGetData.htm">GetData</a> will return <code>"a"</code> instead of <code>"a &lt;"</code> (losing the encoded less than sign) in the following XML:</p>
<PRE lang=xml><FONT color=#0000ff>&lt;t&gt;</FONT><FONT style='color:black;font-weight:bold;'> a &amp;lt; </FONT><FONT color=#0000ff>&lt;/t&gt;</FONT></PRE>
<p><b>Fix for 11.4:</b> in Markup.cpp:3076 insert code to set <code>nCharWhitespace = 0</code> as follows:</p>
<pre>  <font color=blue>if</font> ( pSource[nChar] == '&' )
  {
<font style='color:#be3232;background:#ffff00;'>    <font color=blue>if</font> ( bAlterWhitespace )
      nCharWhitespace = 0;
</font>
    <font color=green>// Get corresponding unicode code point</font>
    <font color=blue>int</font> nUnicode = 0;</pre>
]]></description>
</item>
<item>
<title>11.3 Bug: crash reading value</title>
<link>http://www.firstobject.com/dn_markknown.htm#20101216035000</link>
<guid isPermaLink="false">dn_markknown.htm#20101216035000</guid>
<pubDate>Thu, 16 Dec 2010 03:50:00 GMT</pubDate>
<category>CMarkup Articles</category>
<description><![CDATA[<pre>CMarkup xml;
xml.SetDocFlags(CMarkup::MDF_COLLAPSEWHITESPACE);
... <font color=blue>if</font> (xml.GetChildData().length() &lt;= 0)</pre>

<PRE lang=xml><FONT color=#0000ff>&lt;?</FONT><FONT color=#004080>xml version</FONT><FONT color=#0000ff>="</FONT><FONT style='color:black;font-weight:bold;'>1.0</FONT><FONT color=#0000ff>"</FONT><FONT color=#004080> encoding</FONT><FONT color=#0000ff>="</FONT><FONT style='color:black;font-weight:bold;'>utf-8</FONT><FONT color=#0000ff>"?&gt;</FONT><FONT style='color:black;font-weight:bold;'>
</FONT><FONT color=#0000ff>&lt;Properties&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;MdlData&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;Path&gt;</FONT><FONT style='color:black;font-weight:bold;'>\DIR\PATH\</FONT><FONT color=#0000ff>&lt;/Path&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;Name&gt;</FONT><FONT style='color:black;font-weight:bold;'>0123_4567</FONT><FONT color=#0000ff>&lt;/Name&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;Type&gt;</FONT><FONT style='color:black;font-weight:bold;'>ABC</FONT><FONT color=#0000ff>&lt;/Type&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;/MdlData&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;Parameters&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;Parameter&gt;</FONT><FONT style='color:black;font-weight:bold;'>
      </FONT><FONT color=#0000ff>&lt;Name&gt;</FONT><FONT style='color:black;font-weight:bold;'>XYZ_PART_NO</FONT><FONT color=#0000ff>&lt;/Name&gt;</FONT><FONT style='color:black;font-weight:bold;'>
      </FONT><b><FONT color=#0000ff>&lt;Value&gt;</FONT><FONT style='color:black;font-weight:bold;'>
      </FONT><FONT color=#0000ff>&lt;/Value&gt;</FONT></b><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;/Parameter&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;Parameter&gt;</FONT></PRE>
<p>When reading [the Value element data], my code crashes.</p>
]]></description>
</item>
<item>
<title>Run from command line problem</title>
<link>http://www.firstobject.com/xml-editor-command-line.htm#20100719031900</link>
<guid isPermaLink="false">xml-editor-command-line.htm#20100719031900</guid>
<pubDate>Mon, 19 Jul 2010 03:19:00 GMT</pubDate>
<category>XML Editor Articles</category>
<description><![CDATA[
<p>In foxe I can do this [with a foal script]</p>
<pre><font color=blue>str</font> NavigateIterativelyXYZ_Generated( CMarkup mDocToNavigate )
{
  mDocToNavigate.ResetPos();
  <font color=blue>str</font> sXML = mDocToNavigate.GetDocFormatted(0);
  <font color=blue>return</font> sXML;
}</pre>
<p>so when I run it, a window pops up and asks which document I wish to convert, shows me the output, all is good... except now, I wish to do this from a command line.</p>
<pre>foxe –run align0.foal input.xml output.xml</pre>
<p>Where align0.foal contains the foal program, input and output names will likely come from a batch script % parameter or such, and input.xml will contain the streamed xml and output.xml will contain the results of the <code>GetDocFormatted(0)</code>. I'm thinking foal can be very powerful, am I missing a point in its implementation?</p>
]]></description>
</item>
<item>
<title>editor 2.4.1.416 re-release</title>
<link>http://www.firstobject.com/dn_editcomments.htm#20100702220000</link>
<guid isPermaLink="false">dn_editcomments.htm#20100702220000</guid>
<pubDate>Fri, 02 Jul 2010 22:00:00 GMT</pubDate>
<category>XML Editor Articles</category>
<description><![CDATA[
<p>I mistakenly released build number 404 instead of 416 on June 12, so I've put the correct one up -- <a href="http://www.firstobject.com/dn_editor.htm">download the latest firstobject XML editor here</a>. Minor differences included right-click bug in tree editbox.</p>
]]></description>
</item>
<item>
<title>CMarkup - Attribute Query Speed</title>
<link>http://www.firstobject.com/attribute-method-performance.htm#20100623215000</link>
<guid isPermaLink="false">attribute-method-performance.htm#20100623215000</guid>
<pubDate>Wed, 23 Jun 2010 21:50:00 GMT</pubDate>
<category>CMarkup Articles</category>
<description><![CDATA[
<p>I've been very impressed with the speed of loading and parsing. However, I've hit one area which is surprisingly slow which I wanted to ask you about - XML attributes.</p>
<p>I'm loading about 3000 XML files, for a total of 99468934 bytes. I'm loading in the files myself and then passing the string to CMarkup. If I do that, and then loop down into every element in every file, it takes about 2 seconds (specifically, 1985ms), which I thought was pretty impressive.</p>
<p>However, if I do the same thing but also loop over every attribute on every element, it takes 8 seconds. I found this a bit surprising - obviously there's no additional file IO time or anything like that, it's all in string processing. The interface which CMarkup provides to access attributes is very string heavy - you  need to get the attribute by name and then query the value using this name.</p>
<p>Is there a quicker way to loop over the XML attributes? I need the name and value for each attribute, but they can be in the order in which they occur in the file.</p>
<p><br>...I iterate the attributes for a single element with <code>GetAttribName()</code> and then call <code>GetAttrib()</code> to get their values.</p>
]]></description>
</item>
<item>
<title>editor 2.4.1 edit XML in tree</title>
<link>http://www.firstobject.com/dn_editcomments.htm#20100612220000</link>
<guid isPermaLink="false">dn_editcomments.htm#20100612220000</guid>
<pubDate>Sat, 12 Jun 2010 22:00:00 GMT</pubDate>
<category>XML Editor Articles</category>
<description><![CDATA[
<p>Release 2.4.1 lets you edit XML in the tree view and see the changes in the text view as you go. This is a safer way to edit XML because it will do the escaping of special characters for you.</p>
<p>The most noticeable change in this release of the editor is that the tree background is grayed out whenever you edit the text view. This is a visual cue to signify that the tree is out of sync with the text document to make it more self-explanatory why the behavior can be unexpected such as when you click into an element in the tree that no longer exists in the actual XML document text. But there are lots of actions that cause it to be parsed and synchronized again such as F5 Refresh and F7 Parse, or even F8 Format, File Save etc. However, when you are editing in the tree then both views remain in sync.</p>
<p>
<li>tree view background is grayed when you edit the text view until re-parsed</li>
<li>edit XML element and attribute values right in the tree view</li>
<li>tree customization values are green to differentiate from data values that can be edited</li>
<li>command line pre-select text e.g. <code>foxe -offset 10 -fromoffset 5 file.xml</code></li>
<li>command line execute <a href="http://www.firstobject.com/dn_foal.htm">FOAL script</a> e.g. <code>foxe -run program.foal</code></li>
<li>command line <code>-watch</code> argument for auto-reloading and read-only viewing the tail of log files</li>
<li>improvement in the way expanding a node in the tree view makes the child nodes visible</li>
<li>documents that do not begin with <code><font color=blue>&lt;</font></code> are assumed not to be markup and the tree stays blank</li>
<li>fix: foal filenames were broken for non-ASCII, now support your Windows locale characters (still not ideal, I know)</li>
<li>fix: foal <code>StrUpper</code> <code>StrLower</code> memory leak</li>
</p>
]]></description>
</item>
<item>
<title>trimming white space</title>
<link>http://www.firstobject.com/whitespace-and-cmarkup.htm#20100317102900</link>
<guid isPermaLink="false">whitespace-and-cmarkup.htm#20100317102900</guid>
<pubDate>Wed, 17 Mar 2010 10:29:00 GMT</pubDate>
<category>CMarkup Articles</category>
<description><![CDATA[
<p>Is there a way to have <a class="codelink" href="http://www.firstobject.com/dn_markGetData.htm">GetData</a> or some other call return just the text of an element and not the whitespace around it?  For example, can <code>GetData</code> return <code>"text"</code> in the following XML instead of <code>"&nbsp;&nbsp;text\n"</code>?</p>

<pre lang=xml><font color=#0000ff>&lt;item&gt;</font><font style='color:black;font-weight:bold;'>
 text
</font><font color=#0000ff>&lt;/item&gt;</font><font style='color:black;font-weight:bold;'>
</font></pre>

<p>I know I can just trim the returned string, but since whitespace isn't supposed to be pertinent in XML, I just thought the library should work this way. In the few cases where I need to preserve whitespace, I can use a CDATA encoding.</p>
]]></description>
</item>
<item>
<title>how to clear the XML result</title>
<link>http://www.firstobject.com/export-xml-records-with-matching-childset.htm#20100127115800</link>
<guid isPermaLink="false">export-xml-records-with-matching-childset.htm#20100127115800</guid>
<pubDate>Wed, 27 Jan 2010 11:58:00 GMT</pubDate>
<category>XML Editor Articles</category>
<description><![CDATA[
<p>Now I'm piggybacking "searches" on top of each other, so it will search for London, output them into a London file, then search for Yorkshire, and output that into a Yorkshire file. My problem is that the editor [script] will retain the results for London, and add them to the top of my Yorkshire file - is there a little code that will clear the internal memory before starting the next process?</p>
]]></description>
</item>
<item>
<title>export records with matching childset</title>
<link>http://www.firstobject.com/export-xml-records-with-matching-childset.htm#20100125121800</link>
<guid isPermaLink="false">export-xml-records-with-matching-childset.htm#20100125121800</guid>
<pubDate>Mon, 25 Jan 2010 12:18:00 GMT</pubDate>
<category>XML Editor Articles</category>
<description><![CDATA[
<p>What I have is a list of properties for sale nationwide, contained in a 1.5gb XML file (your program is the only one which seems to handle this with ease!) I'm looking for a way to make the editor export all the records which have a matching childset, in this case 'locality' (in this example, London). There's 100,000 listings so not a manual job!</p>
<p>I've been successful splitting the file into 100,000 seperate files, named by the locality (using your tutorials). But patching them all together takes a long time, even if I automate it. A sample record below:</p>

<PRE lang=xml><FONT color=#0000ff>&lt;listing</FONT><FONT color=#be3232> key</FONT><FONT color=#0000ff>="</FONT><FONT style='color:black;font-weight:bold;'>1234567</FONT><FONT color=#0000ff>"</FONT><FONT color=#be3232> status</FONT><FONT color=#0000ff>="</FONT><FONT style='color:black;font-weight:bold;'>active</FONT><FONT color=#0000ff>"</FONT><FONT color=#be3232> updated</FONT><FONT color=#0000ff>="</FONT><FONT style='color:black;font-weight:bold;'>20090101T010101</FONT><FONT color=#0000ff>"</FONT><FONT color=#be3232> type</FONT><FONT color=#0000ff>="</FONT><FONT style='color:black;font-weight:bold;'>residence</FONT><FONT color=#0000ff>"&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;title&gt;&lt;![CDATA[</FONT><FONT color=#804000>Xyz Street, London</FONT><FONT color=#0000ff>]]&gt;&lt;/title&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;supplementary-url&gt;&lt;![CDATA[</FONT><FONT color=#804000>1234567.htm</FONT><FONT color=#0000ff>]]&gt;&lt;/supplementary-url&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;description&gt;&lt;![CDATA[</FONT><FONT color=#804000>AVAILABLE 01/01/2010. This
beautifully decorated place is situated on a quiet back
street of Xyz Garden in the heart of Xyz London.
The owners have refurbished to a particluarly high
standard paying exceptional attention to detail to the
overall finish and decoration. As the apartment is
situated on the Nth floor there are great views of
London giving the apartment excellent natural light.
Features available. We highly recommend a viewing.</FONT><FONT color=#0000ff>]]&gt;&lt;/description&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;residence</FONT><FONT color=#be3232> type</FONT><FONT color=#0000ff>="</FONT><FONT style='color:black;font-weight:bold;'>flat</FONT><FONT color=#0000ff>"&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;bedrooms&gt;&lt;![CDATA[</FONT><FONT color=#804000>1</FONT><FONT color=#0000ff>]]&gt;&lt;/bedrooms&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;bathrooms&gt;&lt;![CDATA[</FONT><FONT color=#804000>1</FONT><FONT color=#0000ff>]]&gt;&lt;/bathrooms&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;reception&gt;&lt;![CDATA[</FONT><FONT color=#804000>yes</FONT><FONT color=#0000ff>]]&gt;&lt;/reception&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;/residence&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;authority&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;lease</FONT><FONT color=#be3232> currency</FONT><FONT color=#0000ff>="</FONT><FONT style='color:black;font-weight:bold;'>GBP</FONT><FONT color=#0000ff>"</FONT><FONT color=#be3232> term</FONT><FONT color=#0000ff>="</FONT><FONT style='color:black;font-weight:bold;'>private</FONT><FONT color=#0000ff>"</FONT><FONT color=#be3232> visible</FONT><FONT color=#0000ff>="</FONT><FONT style='color:black;font-weight:bold;'>yes</FONT><FONT color=#0000ff>"&gt;</FONT><FONT style='color:black;font-weight:bold;'>
      </FONT><FONT color=#0000ff>&lt;price</FONT><FONT color=#be3232> term</FONT><FONT color=#0000ff>="</FONT><FONT style='color:black;font-weight:bold;'>weekly</FONT><FONT color=#0000ff>"&gt;&lt;![CDATA[</FONT><FONT color=#804000>450</FONT><FONT color=#0000ff>]]&gt;&lt;/price&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;/lease&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;/authority&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;address</FONT><FONT color=#be3232> visible</FONT><FONT color=#0000ff>="</FONT><FONT style='color:black;font-weight:bold;'>yes</FONT><FONT color=#0000ff>"&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;country&gt;&lt;![CDATA[</FONT><FONT color=#804000>GB</FONT><FONT color=#0000ff>]]&gt;&lt;/country&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;subdivision&gt;&lt;![CDATA[</FONT><FONT color=#804000>London</FONT><FONT color=#0000ff>]]&gt;&lt;/subdivision&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;locality&gt;&lt;![CDATA[</FONT><FONT color=#804000>London</FONT><FONT color=#0000ff>]]&gt;&lt;/locality&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;postcode&gt;&lt;![CDATA[</FONT><FONT color=#804000>AA1A 1AA</FONT><FONT color=#0000ff>]]&gt;&lt;/postcode&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;road&gt;&lt;![CDATA[</FONT><FONT color=#804000>Xyz Street</FONT><FONT color=#0000ff>]]&gt;&lt;/road&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;/address&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;attachments&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;photo</FONT><FONT color=#be3232> title</FONT><FONT color=#0000ff>=""</FONT><FONT color=#be3232> updated</FONT><FONT color=#0000ff>="</FONT><FONT style='color:black;font-weight:bold;'>20090101T010101</FONT><FONT color=#0000ff>"</FONT><FONT color=#be3232> type</FONT><FONT color=#0000ff>="</FONT><FONT style='color:black;font-weight:bold;'>image/jpeg</FONT><FONT color=#0000ff>"&gt;</FONT><FONT style='color:black;font-weight:bold;'>
      </FONT><FONT color=#0000ff>&lt;uri&gt;&lt;![CDATA[</FONT><FONT color=#804000>1234567_354_255.jpg</FONT><FONT color=#0000ff>]]&gt;&lt;/uri&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;/photo&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;photo</FONT><FONT color=#be3232> title</FONT><FONT color=#0000ff>=""</FONT><FONT color=#be3232> updated</FONT><FONT color=#0000ff>="</FONT><FONT style='color:black;font-weight:bold;'>20091118T201049</FONT><FONT color=#0000ff>"</FONT><FONT color=#be3232> type</FONT><FONT color=#0000ff>="</FONT><FONT style='color:black;font-weight:bold;'>image/jpeg</FONT><FONT color=#0000ff>"&gt;</FONT><FONT style='color:black;font-weight:bold;'>
      </FONT><FONT color=#0000ff>&lt;uri&gt;&lt;![CDATA[</FONT><FONT color=#804000>23456789_354_255.jpg</FONT><FONT color=#0000ff>]]&gt;&lt;/uri&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;/photo&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;photo</FONT><FONT color=#be3232> title</FONT><FONT color=#0000ff>=""</FONT><FONT color=#be3232> updated</FONT><FONT color=#0000ff>="</FONT><FONT style='color:black;font-weight:bold;'>20091118T201049</FONT><FONT color=#0000ff>"</FONT><FONT color=#be3232> type</FONT><FONT color=#0000ff>="</FONT><FONT style='color:black;font-weight:bold;'>image/jpeg</FONT><FONT color=#0000ff>"&gt;</FONT><FONT style='color:black;font-weight:bold;'>
      </FONT><FONT color=#0000ff>&lt;uri&gt;&lt;![CDATA[</FONT><FONT color=#804000>34567890_354_255.jpg</FONT><FONT color=#0000ff>]]&gt;&lt;/uri&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;/photo&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;/attachments&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;vendor&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;name&gt;&lt;![CDATA[</FONT><FONT color=#804000>Xyz Property Services</FONT><FONT color=#0000ff>]]&gt;&lt;/name&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;phone&gt;&lt;![CDATA[</FONT><FONT color=#804000>020 1234 5678</FONT><FONT color=#0000ff>]]&gt;&lt;/phone&gt;</FONT><FONT style='color:black;font-weight:bold;'>
    </FONT><FONT color=#0000ff>&lt;email&gt;&lt;![CDATA[</FONT><FONT color=#804000>enquiries@xyz.example</FONT><FONT color=#0000ff>]]&gt;&lt;/email&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;/vendor&gt;</FONT><FONT style='color:black;font-weight:bold;'>
</FONT><FONT color=#0000ff>&lt;/listing&gt;</FONT><FONT style='color:black;font-weight:bold;'>
</FONT></PRE>
]]></description>
</item>
<item>
<title>How to run script automatically</title>
<link>http://www.firstobject.com/xml-editor-command-line.htm#20100118022400</link>
<guid isPermaLink="false">xml-editor-command-line.htm#20100118022400</guid>
<pubDate>Mon, 18 Jan 2010 02:24:00 GMT</pubDate>
<category>XML Editor Articles</category>
<description><![CDATA[
<p>The foal script works a treat now. When I move this to production it has to run as part of an automated project that will be scheduled to run overnight</p>
]]></description>
</item>
<item>
<title>Open not getting anything</title>
<link>http://www.firstobject.com/split-xml.htm#20100115111800</link>
<guid isPermaLink="false">split-xml.htm#20100115111800</guid>
<pubDate>Fri, 15 Jan 2010 11:18:00 GMT</pubDate>
<category>XML Editor Articles</category>
<description><![CDATA[
<p>With the editor and foal script using <code>Open</code> it doesn't seem to get anything when stepping through in debug it shows <code>xmloutput (cmarkup) (0)</code> and <code>xmlinput (cmarkup) (0)</code>.</p>
]]></description>
</item>
<item>
<title>Memory exception splitting big XML</title>
<link>http://www.firstobject.com/split-xml.htm#20100115090700</link>
<guid isPermaLink="false">split-xml.htm#20100115090700</guid>
<pubDate>Fri, 15 Jan 2010 09:07:00 GMT</pubDate>
<category>XML Editor Articles</category>
<description><![CDATA[
<p>Hi I'm trying to use the xml splitter script but I'm getting an out of memory exception when I try to [load] the xml file and the script just exits on the [next] line within the free editor. The file is 862 mb but it does state that the same method can be used for gigabite size files.</p>
]]></description>
</item>
<item>
<title>multiply defined symbol errors in easy zlib</title>
<link>http://www.firstobject.com/easy-zlib-c++-xml-compression.htm#20090908132400</link>
<guid isPermaLink="false">easy-zlib-c++-xml-compression.htm#20090908132400</guid>
<pubDate>Tue, 08 Sep 2009 13:24:00 GMT</pubDate>
<category>C++ Articles</category>
<description><![CDATA[
<p>First of all thank you for developing and sharing this extremely useful lib. It has all I ever wanted from zlib, but in much smaller and easier to use package. :) I wanted you to know that I compiled it under mac OS X using xcode 3.1 (intel mac). I found only one issue, the linker was reporting duplicate symbols for function (since multiple source files have easy zlib included).</p>

<pre><font color=blue>int</font> ezcompress( ezbuffer& bufDest, <font color=blue>const</font> ezbuffer& bufSrc )
and similar...</pre>

<p>I solved it by declaring the functions inline:</p>

<pre><font style='color:blue;background:#ffff00;'>inline</font> <font color=blue>int</font> ezcompress( ezbuffer& bufDest, <font color=blue>const</font> ezbuffer& bufSrc )
<font style='color:blue;background:#ffff00;'>inline</font> <font color=blue>int</font> ezuncompress( ezbuffer& bufDest, <font color=blue>const</font> ezbuffer& bufSrc )
<font style='color:blue;background:#ffff00;'>inline</font> <font color=blue>int</font> ezcompress( ezbuffer& bufDest, <font color=blue>const</font> MCD_STR& strSrc )
<font style='color:blue;background:#ffff00;'>inline</font> <font color=blue>int</font> ezuncompress( MCD_STR& strDest, <font color=blue>const</font> ezbuffer& bufSrc )</pre>
]]></description>
</item>
<item>
<title>Linking Problem of CMarkup V11.1</title>
<link>http://www.firstobject.com/fseeki64-ftelli64-in-vc++.htm#20090727061900</link>
<guid isPermaLink="false">fseeki64-ftelli64-in-vc++.htm#20090727061900</guid>
<pubDate>Mon, 27 Jul 2009 06:19:00 GMT</pubDate>
<category>CMarkup Articles</category>
<description><![CDATA[
<p>I'm using CMarkup (V11.1) class in my laboratory project (Windows XP & Visual C++ 6.0) for parsing xml documents. I've download Markup.h &amp; Markup.cpp from www.firstobject.com and added them into my VC++ project.</p>
<p>There's a problem in Markup.h, line 223: "<code><font color=blue>#elif</font> _MSC_VER >= 1000</code>". As the version of VC++ 6.0 is 1200, <code>MCD_FSEEK</code> and <code>MCD_FTELL</code> are defined as <code>_fseeki64</code> and <code>_ftelli64</code>. This causes 2 linking errors, e.g. "unresolved external symbol __ftelli64"</p>
<p>However, if I choose to "Use MFC in a Static Library", just the same as the sample project does, it's okay. But the size of execution file seems to be too big. So I changed the line 223 like this: "<code><font color=blue>#elif</font> _MSC_VER > 1200</code>", and the problem is solved. I also try version 11.0 of CMarkup and there's no such problem, because it define <code>MCD_FSEEK</code> as <code>_fseeki64</code> only when <code>_MSC_VER</code> is bigger than 1400 (VC++ 2005).</p>
<p>I would suggest that for VC++ 6.0, it's better to define <code>MCD_FSEEK</code> and <code>MCD_FTELL</code> as <code>fseek</code> and <code>ftell</code>, rather than <code>_fseeki64</code> and <code>_ftelli64</code></p>
]]></description>
</item>
<item>
<title>XML Splitter</title>
<link>http://www.firstobject.com/generate-file-names-xml-splitter.htm#20090701182500</link>
<guid isPermaLink="false">generate-file-names-xml-splitter.htm#20090701182500</guid>
<pubDate>Wed, 01 Jul 2009 18:25:00 GMT</pubDate>
<category>XML Editor Articles</category>
<description><![CDATA[
<p>I am desperately searching for a xml splitter to generate the file name using values from a child field. Is there any way to have the file named this way:</p>
<p><code>xmlOutput.Open( "test" + "_" + [Child value from REFERRAL_ID]  + "_" + nFileCount + ".xml", MDF_WRITEFILE );</code></p>
<p>My xml [not real data] is:</p>

<PRE lang=xml><FONT color=#0000ff>&lt;REFERRAL_DISCHARGE&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;FILE_VERSION&gt;</FONT><FONT style='color:black;font-weight:bold;'>1.0</FONT><FONT color=#0000ff>&lt;/FILE_VERSION&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;REFERRAL_ID&gt;</FONT><FONT style='color:black;font-weight:bold;'>1234</FONT><FONT color=#0000ff>&lt;/REFERRAL_ID&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;ORGANISATION_ID&gt;</FONT><FONT style='color:black;font-weight:bold;'>ORG-5678</FONT><FONT color=#0000ff>&lt;/ORGANISATION_ID&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;ORGANISATION_TYPE&gt;</FONT><FONT style='color:black;font-weight:bold;'>005</FONT><FONT color=#0000ff>&lt;/ORGANISATION_TYPE&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;EXTRACT_FROM_DATE_TIME&gt;</FONT><FONT style='color:black;font-weight:bold;'>2009-06-01T00:00:00</FONT><FONT color=#0000ff>&lt;/EXTRACT_FROM_DATE_TIME&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;EXTRACTED_DATE_TIME&gt;</FONT><FONT style='color:black;font-weight:bold;'>2009-06-30T15:40:15</FONT><FONT color=#0000ff>&lt;/EXTRACTED_DATE_TIME&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;TEAM_CODE&gt;</FONT><FONT style='color:black;font-weight:bold;'>5555</FONT><FONT color=#0000ff>&lt;/TEAM_CODE&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;EVENT_HCU_ID&gt;</FONT><FONT style='color:black;font-weight:bold;'>XXX1234</FONT><FONT color=#0000ff>&lt;/EVENT_HCU_ID&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;SEX&gt;</FONT><FONT style='color:black;font-weight:bold;'>M</FONT><FONT color=#0000ff>&lt;/SEX&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;DATE_OF_BIRTH&gt;</FONT><FONT style='color:black;font-weight:bold;'>1900-05-05</FONT><FONT color=#0000ff>&lt;/DATE_OF_BIRTH&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;REFERRAL_FROM&gt;</FONT><FONT style='color:black;font-weight:bold;'>UN</FONT><FONT color=#0000ff>&lt;/REFERRAL_FROM&gt;</FONT><FONT style='color:black;font-weight:bold;'>
  </FONT><FONT color=#0000ff>&lt;START_DATE_TIME&gt;</FONT><FONT style='color:black;font-weight:bold;'>2008-12-24T00:00:00</FONT><FONT color=#0000ff>&lt;/START_DATE_TIME&gt;</FONT><FONT style='color:black;font-weight:bold;'>
</FONT><FONT color=#0000ff>&lt;/REFERRAL_DISCHARGE&gt;</FONT><FONT style='color:black;font-weight:bold;'>
</FONT></PRE>
 
<p>The parent is REFERRAL_DISCHARGE, I need the file name exactly how you have it plus the individual value from REFERRAL_ID to make it easy to link to the data included.</p>
<p>We are a not-for-profit organization and we have to report to the [New Zealand] Ministry of Health and our data is to be packed as individual xml files. We are not dealing with huge files (this one was only 316kb) and also they are relatively simple extracts, but I don’t know in the future... it may get more complicated.</p>
]]></description>
</item>
</channel>
</rss>
