<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to XML file to initialization value</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/96814df343/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/96814df343/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/96814df343/</id><updated>2021-10-06T06:45:29.454000Z</updated><subtitle>Recent posts to XML file to initialization value</subtitle><entry><title>XML file to initialization value</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/96814df343/?limit=250#5f9d" rel="alternate"/><published>2021-10-06T06:45:29.454000Z</published><updated>2021-10-06T06:45:29.454000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/</uri></author><id>https://forge.codesys.com885e70fd346f57e44f455ede133d4d1b585ce0d3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;As you stated :&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;an XML file (or another type of file) &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;So I beg you may use some easier format to read, or just do some string search to the property you need, without using DOM.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>XML file to initialization value</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/96814df343/?limit=250#a6c1" rel="alternate"/><published>2021-10-05T17:58:14.962000Z</published><updated>2021-10-05T17:58:14.962000Z</updated><author><name>h-hermsen</name><uri>https://forge.codesys.com/u/hermsen/</uri></author><id>https://forge.codesys.comb0dbf2a7abf3d38f9375ef73dd03d8371709020b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;It is not free of charge, but it is cheap though ;-)&lt;br/&gt;
&lt;a href="https://store.codesys.com/en/iiot-libraries-sl.html" rel="nofollow"&gt;https://store.codesys.com/en/iiot-libraries-sl.html&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>XML file to initialization value</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/96814df343/?limit=25#43ef" rel="alternate"/><published>2021-10-05T15:52:12.124000Z</published><updated>2021-10-05T15:52:12.124000Z</updated><author><name>jeffersonhui</name><uri>https://forge.codesys.com/u/jeffersonhui/</uri></author><id>https://forge.codesys.com140187c9e03b503d97580332b16a759d13eaf255</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Also, I am testing the XML Utility library. I downloaded this free library from the Codesys store and installed the package, but the library says that I need a license:&lt;img src="./attachment/1.png" width="50%"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>XML file to initialization value</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/96814df343/?limit=25#cb14" rel="alternate"/><published>2021-10-05T15:27:54.298000Z</published><updated>2021-10-05T15:27:54.298000Z</updated><author><name>jeffersonhui</name><uri>https://forge.codesys.com/u/jeffersonhui/</uri></author><id>https://forge.codesys.comcd1209c039a759226193615baf6bf4c4f152ea16</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;How do I read from the XML file?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>XML file to initialization value</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/96814df343/?limit=250#19ef" rel="alternate"/><published>2021-10-05T14:21:35.097000Z</published><updated>2021-10-05T14:21:35.097000Z</updated><author><name>dFx</name><uri>https://forge.codesys.com/u/dfx/</uri></author><id>https://forge.codesys.com16ede485fdf0d8adc588bee50886e04bef9d717f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You can read a file at first scan, but as file operations are asynchronous (takes more than one task cycle), you need to add some code to block the execution requiring the variable to be correctly initialized.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>XML file to initialization value</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/96814df343/?limit=25#c065" rel="alternate"/><published>2021-10-05T14:09:03.685000Z</published><updated>2021-10-05T14:09:03.685000Z</updated><author><name>jeffersonhui</name><uri>https://forge.codesys.com/u/jeffersonhui/</uri></author><id>https://forge.codesys.coma42999c0c4746de3fe5f80a138fb7a30741ad7c7</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is it possible to parse a specific value from an XML file (or another type of file) and write the value as initialization value in the declaration of a variable?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br/&gt;
Jefferson&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>