<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem bei lesen von XML Datei]]></title><description><![CDATA[<p>Hallo zuammen. Folgenermassen sieht mein Code aus:</p>
<pre><code class="language-cpp">_di_IXMLDocument XML = LoadXMLDocument(L&quot;cfg.xml&quot;);
   _di_IXMLNodeList NodeList = XML-&gt;DocumentElement-&gt;ChildNodes;
   _di_IXMLNode smtpNode = NodeList-&gt;FindNode(L&quot;SMTP&quot;);

   String sHost = smtpNode-&gt;ChildNodes-&gt;FindNode(L&quot;HOST&quot;)-&gt;NodeValue;
   String sPort = smtpNode-&gt;ChildNodes-&gt;FindNode(L&quot;PORT&quot;)-&gt;NodeValue;
   String sUserID = smtpNode-&gt;ChildNodes-&gt;FindNode(L&quot;USERID&quot;)-&gt;NodeValue;
   String sFromAdress = smtpNode-&gt;ChildNodes-&gt;FindNode(L&quot;FROMADRESS&quot;)-&gt;NodeValue;
   String sFromName = smtpNode-&gt;ChildNodes-&gt;FindNode(L&quot;FROMNAME&quot;)-&gt;NodeValue;
</code></pre>
<p>Und hier kommt mein Problem. Wenn irgendein Feld leer bleibt, bekomme ich eine Fehlermeldung beim lesen. Heißt es dass ich jedes Feld belegen muß. Darf ich dort nicht einfach ein &quot;&quot; einfügen? Wie kann man das umgehen. Der user soll ja nicht gezwungen sein etwas unbedingt einzugeben. Dei Felder könne auch leer bleiben.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/82481/problem-bei-lesen-von-xml-datei</link><generator>RSS for Node</generator><lastBuildDate>Wed, 01 Jul 2026 08:19:42 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/82481.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 11 Aug 2004 14:44:54 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem bei lesen von XML Datei on Wed, 11 Aug 2004 14:44:54 GMT]]></title><description><![CDATA[<p>Hallo zuammen. Folgenermassen sieht mein Code aus:</p>
<pre><code class="language-cpp">_di_IXMLDocument XML = LoadXMLDocument(L&quot;cfg.xml&quot;);
   _di_IXMLNodeList NodeList = XML-&gt;DocumentElement-&gt;ChildNodes;
   _di_IXMLNode smtpNode = NodeList-&gt;FindNode(L&quot;SMTP&quot;);

   String sHost = smtpNode-&gt;ChildNodes-&gt;FindNode(L&quot;HOST&quot;)-&gt;NodeValue;
   String sPort = smtpNode-&gt;ChildNodes-&gt;FindNode(L&quot;PORT&quot;)-&gt;NodeValue;
   String sUserID = smtpNode-&gt;ChildNodes-&gt;FindNode(L&quot;USERID&quot;)-&gt;NodeValue;
   String sFromAdress = smtpNode-&gt;ChildNodes-&gt;FindNode(L&quot;FROMADRESS&quot;)-&gt;NodeValue;
   String sFromName = smtpNode-&gt;ChildNodes-&gt;FindNode(L&quot;FROMNAME&quot;)-&gt;NodeValue;
</code></pre>
<p>Und hier kommt mein Problem. Wenn irgendein Feld leer bleibt, bekomme ich eine Fehlermeldung beim lesen. Heißt es dass ich jedes Feld belegen muß. Darf ich dort nicht einfach ein &quot;&quot; einfügen? Wie kann man das umgehen. Der user soll ja nicht gezwungen sein etwas unbedingt einzugeben. Dei Felder könne auch leer bleiben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/580095</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/580095</guid><dc:creator><![CDATA[BlackDragon]]></dc:creator><pubDate>Wed, 11 Aug 2004 14:44:54 GMT</pubDate></item><item><title><![CDATA[Reply to Problem bei lesen von XML Datei on Wed, 11 Aug 2004 16:21:13 GMT]]></title><description><![CDATA[<p>&quot;Kommt eine Fehlermeldung&quot; ist genau wie &quot;geht nicht&quot; o.ä. keine ausreichende Problembeschreibung.</p>
<p>Wie lautet die Fehlermeldung <strong>genau</strong>?<br />
Tip: bei aktiver Fehlermeldung STRG+C drücken, im Browser dann STRG+V.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/580185</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/580185</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Wed, 11 Aug 2004 16:21:13 GMT</pubDate></item></channel></rss>