<?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[tinyXML filestream öffnen]]></title><description><![CDATA[<p>Hallo !</p>
<p>Ist es eigentlich bei tinyXML möglich äquivalent zu</p>
<pre><code class="language-cpp">TiXmlDocument doc(Filename)
</code></pre>
<p>doc aus einem filestream zu erzeugen ? (Datei wurde vorher manipuliert und dann in einen stream eingelesen)</p>
<p>Danke und mfg leon</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/217377/tinyxml-filestream-öffnen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 11:02:10 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/217377.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 07 Jul 2008 09:35:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to tinyXML filestream öffnen on Mon, 07 Jul 2008 09:35:15 GMT]]></title><description><![CDATA[<p>Hallo !</p>
<p>Ist es eigentlich bei tinyXML möglich äquivalent zu</p>
<pre><code class="language-cpp">TiXmlDocument doc(Filename)
</code></pre>
<p>doc aus einem filestream zu erzeugen ? (Datei wurde vorher manipuliert und dann in einen stream eingelesen)</p>
<p>Danke und mfg leon</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1542362</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1542362</guid><dc:creator><![CDATA[leon22]]></dc:creator><pubDate>Mon, 07 Jul 2008 09:35:15 GMT</pubDate></item><item><title><![CDATA[Reply to tinyXML filestream öffnen on Mon, 07 Jul 2008 09:56:09 GMT]]></title><description><![CDATA[<p>Bist du sicher, dass das in dieses Forum gehört?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1542388</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1542388</guid><dc:creator><![CDATA[Nexus]]></dc:creator><pubDate>Mon, 07 Jul 2008 09:56:09 GMT</pubDate></item><item><title><![CDATA[Reply to tinyXML filestream öffnen on Mon, 07 Jul 2008 10:05:38 GMT]]></title><description><![CDATA[<p>Wieso nicht ?<br />
Vielleicht ist ja jemand da der tinyXML verwendet !</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1542400</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1542400</guid><dc:creator><![CDATA[leon22]]></dc:creator><pubDate>Mon, 07 Jul 2008 10:05:38 GMT</pubDate></item><item><title><![CDATA[Reply to tinyXML filestream öffnen on Thu, 10 Jul 2008 08:14:01 GMT]]></title><description><![CDATA[<p>Niemand eine Idee !?</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1544764</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1544764</guid><dc:creator><![CDATA[leon22]]></dc:creator><pubDate>Thu, 10 Jul 2008 08:14:01 GMT</pubDate></item><item><title><![CDATA[Reply to tinyXML filestream öffnen on Thu, 10 Jul 2008 08:22:27 GMT]]></title><description><![CDATA[<p>leon22 schrieb:</p>
<blockquote>
<p>Hallo !</p>
<p>Ist es eigentlich bei tinyXML möglich äquivalent zu</p>
<pre><code class="language-cpp">TiXmlDocument doc(Filename)
</code></pre>
<p>doc aus einem filestream zu erzeugen ? (Datei wurde vorher manipuliert und dann in einen stream eingelesen)</p>
</blockquote>
<p>Wie wurde die Datei in einen stream eingelesen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1544770</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1544770</guid><dc:creator><![CDATA[bladerunner10]]></dc:creator><pubDate>Thu, 10 Jul 2008 08:22:27 GMT</pubDate></item><item><title><![CDATA[Reply to tinyXML filestream öffnen on Thu, 10 Jul 2008 09:31:42 GMT]]></title><description><![CDATA[<p>Ich meine, man könnte das Dokument auch aus einem String laden, wenn dir das weiterhilft. Ich gucke schnell mal..</p>
<p>edit: Wenn du 'nen Null-terminierten String hast, müsste <a href="http://www.grinninglizard.com/tinyxmldocs/classTiXmlDocument.html#a14" rel="nofollow">TiXmlDocument.parse</a> funktionieren.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1544821</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1544821</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Thu, 10 Jul 2008 09:31:42 GMT</pubDate></item><item><title><![CDATA[Reply to tinyXML filestream öffnen on Thu, 10 Jul 2008 11:57:48 GMT]]></title><description><![CDATA[<p>Nur als Beispiel:</p>
<pre><code class="language-cpp">std::ifstream test(&quot;test.xml&quot;);
TiXmlDocument doc;

doc.LoadFile(test);
</code></pre>
<p>Ergibt folgenden Fehler (typ stimmt nicht):</p>
<pre><code>bool TiXmlDocument::LoadFile(TiXmlEncoding)' : cannot convert parameter 1 from 'std::ifstream' to 'TiXmlEncoding'
        No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
</code></pre>
<p>Hilft hier Operator überladen oder gehts auch einfacher (und wenn nicht wie) ?!</p>
<p>Danke und mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1544964</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1544964</guid><dc:creator><![CDATA[leon22]]></dc:creator><pubDate>Thu, 10 Jul 2008 11:57:48 GMT</pubDate></item><item><title><![CDATA[Reply to tinyXML filestream öffnen on Thu, 10 Jul 2008 12:33:15 GMT]]></title><description><![CDATA[<p>Die Antwort ist:</p>
<p>in tinyxml.h muss STL Support aktiviert werden</p>
<p>In der 1. Zeile ein</p>
<pre><code class="language-cpp">#define TIXML_USE_STL
</code></pre>
<p>und die Verwendung von streams ist wie folgt möglich:</p>
<pre><code class="language-cpp">TiXmlDocument doc;
std::ifstream test(&quot;test.xml&quot;); 

test &gt;&gt; doc;

TiXmlNode* pParent = &amp;doc; // Wurzel
</code></pre>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1545008</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1545008</guid><dc:creator><![CDATA[leon22]]></dc:creator><pubDate>Thu, 10 Jul 2008 12:33:15 GMT</pubDate></item></channel></rss>