<?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[XML-Fragment innerhalb eines XML-Knotens?]]></title><description><![CDATA[<p>Servus.</p>
<p>Ich will ein XML-Fragment innerhalb eines XML-Knotens (XmlContent im Beispiel) speichern.</p>
<pre><code class="language-html">&lt;XmlContent&gt;&lt;Name&gt;Franz&lt;/Name&gt;&lt;Age&gt;25&lt;/Age&gt;&lt;/XmlContent&gt;
</code></pre>
<p>Das XML-Dokument wird gegen ein Schema validiert und dieses meckert, wenn unbekannte XML-Daten innerhalb des Knotens stehen. Der Datentyp des Knotens ist string. Gibt ein besseres/einfacheres Verfahren, als das Entwerten der &quot;&lt;&quot; bzw. &quot;\&gt;&quot; Zeichen, um XML-Fragmente innerhalb eines XML-Knotens zu speichern?</p>
<p>Danke im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/162214/xml-fragment-innerhalb-eines-xml-knotens</link><generator>RSS for Node</generator><lastBuildDate>Thu, 09 Jul 2026 12:06:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/162214.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 16 Oct 2006 12:16:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to XML-Fragment innerhalb eines XML-Knotens? on Mon, 16 Oct 2006 12:16:42 GMT]]></title><description><![CDATA[<p>Servus.</p>
<p>Ich will ein XML-Fragment innerhalb eines XML-Knotens (XmlContent im Beispiel) speichern.</p>
<pre><code class="language-html">&lt;XmlContent&gt;&lt;Name&gt;Franz&lt;/Name&gt;&lt;Age&gt;25&lt;/Age&gt;&lt;/XmlContent&gt;
</code></pre>
<p>Das XML-Dokument wird gegen ein Schema validiert und dieses meckert, wenn unbekannte XML-Daten innerhalb des Knotens stehen. Der Datentyp des Knotens ist string. Gibt ein besseres/einfacheres Verfahren, als das Entwerten der &quot;&lt;&quot; bzw. &quot;\&gt;&quot; Zeichen, um XML-Fragmente innerhalb eines XML-Knotens zu speichern?</p>
<p>Danke im voraus</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155669</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155669</guid><dc:creator><![CDATA[scap]]></dc:creator><pubDate>Mon, 16 Oct 2006 12:16:42 GMT</pubDate></item><item><title><![CDATA[Reply to XML-Fragment innerhalb eines XML-Knotens? on Mon, 16 Oct 2006 12:34:34 GMT]]></title><description><![CDATA[<blockquote>
<p>Gibt ein besseres/einfacheres Verfahren, als das Entwerten der &quot;&lt;&quot; bzw. &quot;\&gt;&quot; Zeichen,</p>
</blockquote>
<p>Was heist den Entwerten in diesem Zusammenhang?<br />
Die DTD muss strikt befolgt werden, aber du kannst ANY als Inhalt angeben um zulassen das jeder Inhalt valide ist.</p>
<p><a href="http://www.stefanheymann.de/xml/dtdxml.htm" rel="nofollow">http://www.stefanheymann.de/xml/dtdxml.htm</a></p>
<blockquote>
<p>ANY Es kann jeder beliebige Inhalt (Text, weitere Elemente) enthalten sein</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1155682</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155682</guid><dc:creator><![CDATA[DEvent]]></dc:creator><pubDate>Mon, 16 Oct 2006 12:34:34 GMT</pubDate></item><item><title><![CDATA[Reply to XML-Fragment innerhalb eines XML-Knotens? on Mon, 16 Oct 2006 13:23:05 GMT]]></title><description><![CDATA[<p>scap schrieb:</p>
<blockquote>
<p>Gibt ein besseres/einfacheres Verfahren, als das Entwerten der &quot;&lt;&quot; bzw. &quot;\&gt;&quot; Zeichen, um XML-Fragmente innerhalb eines XML-Knotens zu speichern?</p>
</blockquote>
<p>Nein. Die Umcodierung der &lt;, &gt; und &amp; innerhalb der Daten ist die richtige Darstellung. Da Du XML als Dateninhalt in den Knoten reinnehmen willst, mußt Du die Entitäten verwenden.</p>
<p>Alternativ bleibt Dir noch übrig, daß Du den Inhalt von XMLNode ebenfalls in das Schema aufnimmst - falls der Inhalt also nicht x-beliebig ist, sondern ebenfalls Regeln folgt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155723</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155723</guid><dc:creator><![CDATA[Marc++us]]></dc:creator><pubDate>Mon, 16 Oct 2006 13:23:05 GMT</pubDate></item><item><title><![CDATA[Reply to XML-Fragment innerhalb eines XML-Knotens? on Mon, 16 Oct 2006 15:32:27 GMT]]></title><description><![CDATA[<p>Und im DTD/Schema einfach den Typ des Parent-Knotens auf CDATA stellen? Setzt natürlich voraus, dass deine Library DTD/Schema ebenfalls ausliest (alias kein TinyXML).</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1155819</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1155819</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Mon, 16 Oct 2006 15:32:27 GMT</pubDate></item><item><title><![CDATA[Reply to XML-Fragment innerhalb eines XML-Knotens? on Tue, 17 Oct 2006 07:03:19 GMT]]></title><description><![CDATA[<p>Aber meines Wissens müssen doch auch bei CDATA &lt;, &gt; und &amp; als &amp;entität; dargestellt werden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156007</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156007</guid><dc:creator><![CDATA[Marc++us]]></dc:creator><pubDate>Tue, 17 Oct 2006 07:03:19 GMT</pubDate></item><item><title><![CDATA[Reply to XML-Fragment innerhalb eines XML-Knotens? on Tue, 17 Oct 2006 07:21:16 GMT]]></title><description><![CDATA[<p>Marc++us schrieb:</p>
<blockquote>
<p>Aber meines Wissens müssen doch auch bei CDATA &lt;, &gt; und &amp; als &amp;entität; dargestellt werden?</p>
</blockquote>
<p>Nein. Folgendes ist legales XML:</p>
<pre><code>&lt;xml&gt;
  &lt;node&gt;
  &lt;![CDATA[
  &gt; &lt; &lt;hal / &gt; &amp;  ' &quot;
  &rsqb;&rsqb;&gt;
  &lt;/node&gt;
&lt;/xml&gt;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1156023</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156023</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Tue, 17 Oct 2006 07:21:16 GMT</pubDate></item><item><title><![CDATA[Reply to XML-Fragment innerhalb eines XML-Knotens? on Tue, 17 Oct 2006 10:23:02 GMT]]></title><description><![CDATA[<p>Marc++us schrieb:</p>
<blockquote>
<p>Aber meines Wissens müssen doch auch bei CDATA &lt;, &gt; und &amp; als &amp;entität; dargestellt werden?</p>
</blockquote>
<p>dann waere CDATA ja unnoetig...</p>
<p>in ne CDATA section kannst du alles packen was du willst (nur kein &rsqb;&rsqb;&gt; ;))</p>
<p>ist recht praktisch wenn du zB scripte oder binaerdaten hast</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156158</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156158</guid><dc:creator><![CDATA[Shade Of Mine]]></dc:creator><pubDate>Tue, 17 Oct 2006 10:23:02 GMT</pubDate></item><item><title><![CDATA[Reply to XML-Fragment innerhalb eines XML-Knotens? on Tue, 17 Oct 2006 13:19:52 GMT]]></title><description><![CDATA[<p>Ihr habt ja so recht... so funktioniert ja auch mein von mir geschriebener XML-Export für das Forum hier... autsch.</p>
<p>Das Alter. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156329</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156329</guid><dc:creator><![CDATA[Marc++us]]></dc:creator><pubDate>Tue, 17 Oct 2006 13:19:52 GMT</pubDate></item><item><title><![CDATA[Reply to XML-Fragment innerhalb eines XML-Knotens? on Tue, 17 Oct 2006 20:03:14 GMT]]></title><description><![CDATA[<p>danke für die Antworten, ich werde die &lt; bzw. &gt; umcodieren. Auf den any-Typ möchte ich möglichst verzichten.</p>
<p>Grüße</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1156611</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1156611</guid><dc:creator><![CDATA[scap]]></dc:creator><pubDate>Tue, 17 Oct 2006 20:03:14 GMT</pubDate></item></channel></rss>