<?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[Programm übel XML konfigurierbar machen?]]></title><description><![CDATA[<p>Hab mal ne grundlegen Frage zu XML zur Konfiguration?</p>
<p>Nehmen wir an ich möchte eine Applikation entwerfen, welche durch XML statt ini etc. konfigurierbar ist. Muss/kann ich mit XSLT die Regeln und aufbau einer XML konfiguration datei definieren, und diese als basis für nen XML Parser verwenden. Wie läuft das ganze?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/223347/programm-übel-xml-konfigurierbar-machen</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Apr 2026 14:13:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/223347.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Sep 2008 07:26:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Programm übel XML konfigurierbar machen? on Thu, 25 Sep 2008 07:26:26 GMT]]></title><description><![CDATA[<p>Hab mal ne grundlegen Frage zu XML zur Konfiguration?</p>
<p>Nehmen wir an ich möchte eine Applikation entwerfen, welche durch XML statt ini etc. konfigurierbar ist. Muss/kann ich mit XSLT die Regeln und aufbau einer XML konfiguration datei definieren, und diese als basis für nen XML Parser verwenden. Wie läuft das ganze?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1587670</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1587670</guid><dc:creator><![CDATA[Devel...]]></dc:creator><pubDate>Thu, 25 Sep 2008 07:26:26 GMT</pubDate></item><item><title><![CDATA[Reply to Programm übel XML konfigurierbar machen? on Thu, 25 Sep 2008 18:37:14 GMT]]></title><description><![CDATA[<p>schau dir mal tinyxml an</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1588100</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1588100</guid><dc:creator><![CDATA[DocJunioR]]></dc:creator><pubDate>Thu, 25 Sep 2008 18:37:14 GMT</pubDate></item><item><title><![CDATA[Reply to Programm übel XML konfigurierbar machen? on Sun, 28 Sep 2008 10:44:31 GMT]]></title><description><![CDATA[<p>Deiner Beschreibung nach ist XSLT nicht das, was du möchtest.<br />
XSLT wandelt Xml-Dateien in andere Formate um, du möchtest aber ein Programm konfigurieren, ne.</p>
<p>Den Aufbau und die Regeln der Xml-Konfigurationsdatei definierst du selbst, da du ja auch selbst die Applikation entwickelst. Einem Xml-Parser sollte es genügen, das du nirgends z.B. ein abschließendes Tag vergisst, d.h. das die Xml-Konfigurationsdatei wohlgeformt ist.</p>
<p>Aus welcher Programmiersprache soll die Applikation entstehen? Für die meisten Sprachen gibt es Xml-Apis, bzw. Parser, die du benutzen kannst, z.B. JDOM für Java, etc.</p>
<p>Gruß,<br />
X.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1589540</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1589540</guid><dc:creator><![CDATA[XMLer]]></dc:creator><pubDate>Sun, 28 Sep 2008 10:44:31 GMT</pubDate></item><item><title><![CDATA[Reply to Programm übel XML konfigurierbar machen? on Sun, 28 Sep 2008 11:17:36 GMT]]></title><description><![CDATA[<p>XMLer schrieb:</p>
<blockquote>
<p>Für die meisten Sprachen gibt es Xml-Apis, bzw. Parser, die du benutzen kannst, z.B. JDOM für Java, etc.</p>
</blockquote>
<p>wenn's etwas high-leveliger sein darf: <a href="http://xstream.codehaus.org/" rel="nofollow">http://xstream.codehaus.org/</a><br />
damit kannste deine ganzen settings in eine xml-datei 'streamem'. arbeitet wie ObjectOutput- und ObjectInputStream, nur dass als dateiformat XML verwendet wird.<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1589567</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1589567</guid><dc:creator><![CDATA[~fricky]]></dc:creator><pubDate>Sun, 28 Sep 2008 11:17:36 GMT</pubDate></item><item><title><![CDATA[Reply to Programm übel XML konfigurierbar machen? on Sun, 28 Sep 2008 11:31:05 GMT]]></title><description><![CDATA[<p>Devel... schrieb:</p>
<blockquote>
<p>Programm übel XML konfigurierbar machen?</p>
</blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /> Echt übel diese ganzen XML Sachen. :p</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1589581</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1589581</guid><dc:creator><![CDATA[H A H A]]></dc:creator><pubDate>Sun, 28 Sep 2008 11:31:05 GMT</pubDate></item><item><title><![CDATA[Reply to Programm übel XML konfigurierbar machen? on Sun, 28 Sep 2008 11:36:59 GMT]]></title><description><![CDATA[<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-174182.html" rel="nofollow">Unterschiede (Vor- und Nachteile) vom XML gegenüber Ini-Dateien</a> -&gt; Konfiguration mit XML</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1589584</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1589584</guid><dc:creator><![CDATA[fairplay]]></dc:creator><pubDate>Sun, 28 Sep 2008 11:36:59 GMT</pubDate></item><item><title><![CDATA[Reply to Programm übel XML konfigurierbar machen? on Sun, 28 Sep 2008 12:47:01 GMT]]></title><description><![CDATA[<p>du suchst wahrscheinlich nach XML-Schema, damit kannst du die Struktur genau definieren und validieren: <a href="http://de.wikipedia.org/wiki/XML_Schema" rel="nofollow">http://de.wikipedia.org/wiki/XML_Schema</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1589632</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1589632</guid><dc:creator><![CDATA[xml-fan]]></dc:creator><pubDate>Sun, 28 Sep 2008 12:47:01 GMT</pubDate></item><item><title><![CDATA[Reply to Programm übel XML konfigurierbar machen? on Sun, 28 Sep 2008 13:41:28 GMT]]></title><description><![CDATA[<p>Neben TinyXML gibt es auch folgende Klassen (aus der irrlicht toolchain ausgekoppelt):<br />
<a href="http://www.ambiera.com/irrxml/" rel="nofollow">http://www.ambiera.com/irrxml/</a></p>
<p>Download:<br />
<a href="http://prdownloads.sourceforge.net/irrlicht/irrxml-1.2.zip?download" rel="nofollow">http://prdownloads.sourceforge.net/irrlicht/irrxml-1.2.zip?download</a></p>
<p>Das verwende ich beispielsweise für die Parametrisierung bei Games.</p>
<p>Einfaches Beispiel:</p>
<pre><code class="language-cpp">#include &quot;..\src\irrXML.h&quot;
using namespace irr;
using namespace io;
#include &lt;iostream&gt;
#include &quot;conio.h&quot;
using namespace std;

#include &lt;string&gt; // we use STL strings to store data in this example

int main()
{
	IrrXMLReader* xml = createIrrXMLReader(&quot;config.xml&quot;);

	// strings for storing the data we want to get out of the file
	std::string modelFile;
	std::string messageText;
	std::string caption;

	// parse the file until end reached
	while(xml &amp;&amp; xml-&gt;read())
	{
		switch(xml-&gt;getNodeType())
		{
		case EXN_TEXT:
			// in this xml file, the only text which occurs is the messageText
			messageText = xml-&gt;getNodeData();
			break;
		case EXN_ELEMENT:
			{
				if (!strcmp(&quot;startUpModel&quot;, xml-&gt;getNodeName()))
					modelFile = xml-&gt;getAttributeValue(&quot;file&quot;);
				else
				if (!strcmp(&quot;messageText&quot;, xml-&gt;getNodeName()))
					caption = xml-&gt;getAttributeValue(&quot;caption&quot;);
			}
			break;
		}
	}

    cout &lt;&lt; &quot;startUpModel: &quot; &lt;&lt; modelFile &lt;&lt; endl;
    cout &lt;&lt; &quot;messageText:  &quot; &lt;&lt; caption   &lt;&lt; endl;

	// delete the xml parser after usage
	delete xml;
	getch();
	return 0;
}
</code></pre>
<p>XML file:</p>
<pre><code>&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;config&gt;
   &lt;!-- This is a config file --&gt;
   &lt;startUpModel file=&quot;dwarf.dea&quot; /&gt;
   &lt;messageText caption=&quot;Irrlicht Engine Mesh Viewer&quot;&gt;
     Welcome to the Mesh Viewer of the &amp;quot;Irrlicht Engine&amp;quot;.
   &lt;/messageText&gt;
&lt;/config&gt;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1589651</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1589651</guid><dc:creator><![CDATA[Erhard Henkes]]></dc:creator><pubDate>Sun, 28 Sep 2008 13:41:28 GMT</pubDate></item><item><title><![CDATA[Reply to Programm übel XML konfigurierbar machen? on Sun, 28 Sep 2008 14:45:55 GMT]]></title><description><![CDATA[<p>xml-fan schrieb:</p>
<blockquote>
<p>du suchst wahrscheinlich nach XML-Schema, damit kannst du die Struktur genau definieren und validieren: <a href="http://de.wikipedia.org/wiki/XML_Schema" rel="nofollow">http://de.wikipedia.org/wiki/XML_Schema</a></p>
</blockquote>
<p>Nö. Sucht er nicht. :p</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1589689</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1589689</guid><dc:creator><![CDATA[Xml Praktiker]]></dc:creator><pubDate>Sun, 28 Sep 2008 14:45:55 GMT</pubDate></item><item><title><![CDATA[Reply to Programm übel XML konfigurierbar machen? on Sun, 28 Sep 2008 15:20:31 GMT]]></title><description><![CDATA[<p>Devel... schrieb:</p>
<blockquote>
<p>...die Regeln und aufbau einer XML konfiguration datei definieren...</p>
</blockquote>
<p>meine aussage bezog sich darauf, sry wenns nicht passt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1589711</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1589711</guid><dc:creator><![CDATA[xml-fan]]></dc:creator><pubDate>Sun, 28 Sep 2008 15:20:31 GMT</pubDate></item></channel></rss>