<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to Discussion</title><link>https://sourceforge.net/p/oxml/discussion/</link><description>Recent posts to Discussion</description><atom:link href="https://sourceforge.net/p/oxml/discussion/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 27 May 2025 07:00:32 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/oxml/discussion/feed.rss" rel="self" type="application/rss+xml"/><item><title>crash when loading a .xlsx file on Linux</title><link>https://sourceforge.net/p/oxml/discussion/general/thread/9dcd40ef2b/?limit=25#6441</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I am trying to refactor some pascal code from a windows App to a non-gui library running on Linux. I am invoking exported functions from python, passing in a valid file name to an .xlsx file that opens fine in libreoffice. &lt;/p&gt;
&lt;p&gt;The python side invoking the function is: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;def&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;load_cam_parameters&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;filename&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="sd"&gt;"""Python wrapper for LoadFullCAMParameters"""&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;c_filename&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ffi&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;new&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"char[]"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;filename&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;encode&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'utf-8'&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="n"&gt;lib&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="n"&gt;LoadFullCAMParameters&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;c_filename&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;internally to pascal code the PChar is converting to a pascal String before being passed further into the call stack.&lt;/p&gt;
&lt;p&gt;My API entry point has a handler for trapping exceptions and recovering from it, so this seems not to be an exception.  &lt;/p&gt;
&lt;p&gt;The crash occurs near or at the 'begin' keyword of &lt;code&gt;TOCustomExporterXLSX.DoImport&lt;/code&gt;, and the process terminates near these lines:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="n"&gt;begin&lt;/span&gt;
&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="n"&gt;Result&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;:=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;inherited&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;DoImport&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;aStream&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;I've managed to set up a debugger in vscode, and the call stack is:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;DoImport (/path/to/src/OExport.pas:16129)
LoadFromStream (/path/to/src/OExport.pas:11482)
LoadFromFile (/path/to/src/OExport.pas:11426)
LoadFromFile (/path/to/src/OExport.pas:11439)
LoadFromFile (/path/to/src/OExport.pas:11450)
LoadFile (/path/to/src/FullCAMDataManager.pas:115)
LoadParams (/path/to/src/ReadFullCAMParameters.pas:483)
LoadFullCAMParameters (/path/to/src/FullCAMDataManager.pas:131)
LoadFullCAMParametersEx (/path/to/src/FullCAMDataManager.pas:151)
LoadFullCAMParametersApi (/path/to/src/plantation.lpr:19)
ffi_call_unix64 (Unknown Source:0)
ffi_call_int (Unknown Source:0)
cdata_call (/project/cffi/src/c/_cffi_backend.c:3229)
_PyEval_EvalFrameDefault (Unknown Source:0)
PyEval_EvalCode (Unknown Source:0)
builtin_exec (Unknown Source:0)
_PyEval_EvalFrameDefault (Unknown Source:0)
gen_send_ex2 (Unknown Source:0)
gen_send_ex (Unknown Source:0)
_PyEval_EvalFrameDefault (Unknown Source:0)
method_vectorcall.llvm (Unknown Source:0)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Any hint as to what is happening? &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jean-Michel Perraud</dc:creator><pubDate>Tue, 27 May 2025 07:00:32 -0000</pubDate><guid>https://sourceforge.net18191af04d8d414fff095bd7d267b57150037c33</guid></item><item><title>DTD validation is possible?</title><link>https://sourceforge.net/p/oxml/discussion/general/thread/e391f64a/?limit=25#5f37</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello, no unfortunately I had to postpone the XSD validator - not really a lot of demand.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ondrej Pokorny</dc:creator><pubDate>Fri, 18 Sep 2020 05:53:27 -0000</pubDate><guid>https://sourceforge.net54c464c01bd1ebbdc0a5fe29193aeaf0a7d6fcb1</guid></item><item><title>DTD validation is possible?</title><link>https://sourceforge.net/p/oxml/discussion/general/thread/e391f64a/?limit=25#82f6</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Now validating by XSD is available? I looking for XML library with validating.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 17 Sep 2020 16:33:13 -0000</pubDate><guid>https://sourceforge.net75217c04c06d6135ed8ba948c2c0210e1b8fc904</guid></item><item><title>Compiling XE6 packages under Delphi 10.2 (error in OEncoding.pas)</title><link>https://sourceforge.net/p/oxml/discussion/general/thread/260c3365/?limit=25#484d</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I am using the sourceforge version. Shall I download the trial from the website ?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 12 Jan 2018 21:43:22 -0000</pubDate><guid>https://sourceforge.net14917bee47156537a3cfe9544be49f0ad446798c</guid></item><item><title>Compiling XE6 packages under Delphi 10.2 (error in OEncoding.pas)</title><link>https://sourceforge.net/p/oxml/discussion/general/thread/260c3365/?limit=25#b491/ce17</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I assume you have a very old OXml version. AFAIK I solved it long time ago.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ondrej Pokorny</dc:creator><pubDate>Fri, 12 Jan 2018 08:57:15 -0000</pubDate><guid>https://sourceforge.netb9a9f3b0badbcbe00ad0e94d934c98cbee67e9d5</guid></item><item><title>Compiling XE6 packages under Delphi 10.2 (error in OEncoding.pas)</title><link>https://sourceforge.net/p/oxml/discussion/general/thread/260c3365/?limit=25#b491</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;It seems like there's a conditional issue with OEncoding.pas which doesn't compile (cannot access private symbol TMBCSEncoding.FCodePage).&lt;/p&gt;
&lt;p&gt;Delphi 10.2 Tokyo   32  VER320&lt;br/&gt;
Delphi 10.1 Berlin  31  VER310&lt;br/&gt;
Delphi 10 Seattle   30  VER300&lt;/p&gt;
&lt;p&gt;Anyone was able to complete the rebuild/compile process ?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 12 Jan 2018 07:28:42 -0000</pubDate><guid>https://sourceforge.netac3223b7f1e08e3c8f1e085bf25ed309bad1ec37</guid></item><item><title>OXML - Querying Node with 2 attributes using XPath</title><link>https://sourceforge.net/p/oxml/discussion/general/thread/65da2ae5/?limit=25#5c64</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Looking at the following simple xml structure:&lt;/p&gt;
&lt;p&gt;&amp;lt;testnode a1="1" a2="2"&amp;gt;Testdata&amp;lt;/testnode&amp;gt;&lt;br/&gt;
&amp;lt;testnode a1="2" a2="2"&amp;gt;Testdata2&amp;lt;/testnode&amp;gt;&lt;/p&gt;
&lt;p&gt;How to select the node with attributes a1="2" and a2="2"?&lt;/p&gt;
&lt;p&gt;//testnode&lt;span&gt;[@a1="1"]&lt;/span&gt;&lt;span&gt;[@a2="2"]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;is not working as well as&lt;/p&gt;
&lt;p&gt;//testnode&lt;span&gt;[@a1="1" and @a2="2"]&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;What is the correct XPath syntax to use?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 28 Nov 2017 21:35:37 -0000</pubDate><guid>https://sourceforge.net7e0a86dc509e0c0f58ff640d32b96f906e1c5d64</guid></item><item><title>OXML. Lazarus. Online Package Manager</title><link>https://sourceforge.net/p/oxml/discussion/general/thread/0bdf6606/?limit=25#7177</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hello Ondrej,&lt;/p&gt;
&lt;p&gt;Since there is a new tool coming up in Lazarus/fpc I'll invite/ask you to provide your packages using OPM (Online Package Manager). That enables Lazarus Users to install the packages with some clicks instead of the old long lasting routine.&lt;/p&gt;
&lt;p&gt;Here ist the forum thread of the user GetMem, the maintainer of OPM:&lt;br/&gt;
&lt;a href="http://forum.lazarus.freepascal.org/index.php/topic" rel="nofollow"&gt;http://forum.lazarus.freepascal.org/index.php/topic&lt;/a&gt;,34297.795.html?PHPSESSID=uk9uc580649s8fur1aadsj4kv6&lt;/p&gt;
&lt;p&gt;This Link &lt;a href="https://www.youtube.com/watch?v=oxCArRUiKm8&amp;amp;feature=youtu.be" rel="nofollow"&gt;https://www.youtube.com/watch?v=oxCArRUiKm8&amp;amp;feature=youtu.be&lt;/a&gt; describes how to create a private repository which i assume is similar to the public repository.&lt;br/&gt;
GetMem will sureley assist in providing your packages using your current infrastructure.&lt;/p&gt;
&lt;p&gt;Thanks in advance&lt;/p&gt;
&lt;p&gt;Karl&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 30 Apr 2017 15:45:30 -0000</pubDate><guid>https://sourceforge.net88773a9499ab7aa6b2a0ffd29d84469b6418e194</guid></item><item><title>DTD validation is possible?</title><link>https://sourceforge.net/p/oxml/discussion/general/thread/e391f64a/?limit=25#84ff</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;XSD has quite a lot of features so first I'll add features that my customers need. The best will be if you send me your XSD files to check them. You find my email address on my homepage www.kluug.net&lt;/p&gt;
&lt;p&gt;DataBinding is due in about 2 weeks, then I'll start with XSD validation. So the first alpha version to test in about 1-2 months.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ondrej Pokorny</dc:creator><pubDate>Mon, 27 Mar 2017 09:10:30 -0000</pubDate><guid>https://sourceforge.net2a0624ccd8ca740aba876992d9fe60941419f6ea</guid></item><item><title>DTD validation is possible?</title><link>https://sourceforge.net/p/oxml/discussion/general/thread/e391f64a/?limit=25#d28b</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Sounds good, thanks.&lt;/p&gt;
&lt;p&gt;Will it be possible to check against multiple .xsd files or better to say against one .xsd files, which does import a few other .xsd files?&lt;/p&gt;
&lt;p&gt;Any rough ETA?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Mon, 27 Mar 2017 08:43:17 -0000</pubDate><guid>https://sourceforge.net0cb3ecff6ba5d4948210c3c5145c946c425a4462</guid></item></channel></rss>