<?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[MSXML newline after node]]></title><description><![CDATA[<p>Heiho</p>
<p>ich hab hier n source bekommen welchen ichs chon fertig ueberarbeitet habe<br />
in diesen wird mittels MSXML2:: ... und<br />
-&gt;createElement(...)<br />
-&gt;appendChild(...)<br />
nodes erzeugt welche einen anderen angehangen werden:</p>
<p>die quelldatei sieht so aus</p>
<pre><code>&lt;parent&gt;
&lt;/parent&gt;
</code></pre>
<p>und<br />
-&gt;createElement(...)<br />
-&gt;appendChild(...)<br />
macht daraus</p>
<pre><code>&lt;parent&gt;
  &lt;child1&gt;child 1&lt;/child1&gt;&lt;child2&gt;child 2&lt;/child2&gt;&lt;child3&gt;child 3&lt;/child3&gt;&lt;/parent&gt;
</code></pre>
<p>wenn ich noch so mach:<br />
-&gt;createTextNode(_T(&quot;\n\t\t\t\t&quot;))<br />
-&gt;appendChild(...)<br />
-&gt;createElement(...)<br />
-&gt;appendChild(...)<br />
wird daraus:</p>
<pre><code>&lt;parent&gt;
  &lt;child1&gt;child 1&lt;/child1&gt;
  &lt;child2&gt;child 2&lt;/child2&gt;
  &lt;child3&gt;child 3&lt;/child3&gt;&lt;/parent&gt;
</code></pre>
<p>soweit habe ich das nun hinbekommen<br />
wie bekomm ich nu auch das &lt;/parent&gt; hinunter?</p>
<p>wenn ich so mach:<br />
-&gt;createTextNode(_T(&quot;\n\t\t\t\t&quot;))<br />
-&gt;appendChild(...)<br />
-&gt;createElement(...)<br />
-&gt;appendChild(...)<br />
-&gt;createTextNode(_T(&quot;\n\t\t\t&quot;))<br />
-&gt;appendChild(...)<br />
wird daraus</p>
<pre><code>&lt;parent&gt;
  &lt;child1/&gt;child 1
  &lt;child2/&gt;child 2
  &lt;child3/&gt;child 3&lt;/parent&gt;
</code></pre>
<p>und des ist ja nu absolut falsch</p>
<p>dank 4 helpings</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/175000/msxml-newline-after-node</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Jul 2026 11:00:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/175000.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 06 Mar 2007 09:12:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to MSXML newline after node on Tue, 06 Mar 2007 09:44:47 GMT]]></title><description><![CDATA[<p>Heiho</p>
<p>ich hab hier n source bekommen welchen ichs chon fertig ueberarbeitet habe<br />
in diesen wird mittels MSXML2:: ... und<br />
-&gt;createElement(...)<br />
-&gt;appendChild(...)<br />
nodes erzeugt welche einen anderen angehangen werden:</p>
<p>die quelldatei sieht so aus</p>
<pre><code>&lt;parent&gt;
&lt;/parent&gt;
</code></pre>
<p>und<br />
-&gt;createElement(...)<br />
-&gt;appendChild(...)<br />
macht daraus</p>
<pre><code>&lt;parent&gt;
  &lt;child1&gt;child 1&lt;/child1&gt;&lt;child2&gt;child 2&lt;/child2&gt;&lt;child3&gt;child 3&lt;/child3&gt;&lt;/parent&gt;
</code></pre>
<p>wenn ich noch so mach:<br />
-&gt;createTextNode(_T(&quot;\n\t\t\t\t&quot;))<br />
-&gt;appendChild(...)<br />
-&gt;createElement(...)<br />
-&gt;appendChild(...)<br />
wird daraus:</p>
<pre><code>&lt;parent&gt;
  &lt;child1&gt;child 1&lt;/child1&gt;
  &lt;child2&gt;child 2&lt;/child2&gt;
  &lt;child3&gt;child 3&lt;/child3&gt;&lt;/parent&gt;
</code></pre>
<p>soweit habe ich das nun hinbekommen<br />
wie bekomm ich nu auch das &lt;/parent&gt; hinunter?</p>
<p>wenn ich so mach:<br />
-&gt;createTextNode(_T(&quot;\n\t\t\t\t&quot;))<br />
-&gt;appendChild(...)<br />
-&gt;createElement(...)<br />
-&gt;appendChild(...)<br />
-&gt;createTextNode(_T(&quot;\n\t\t\t&quot;))<br />
-&gt;appendChild(...)<br />
wird daraus</p>
<pre><code>&lt;parent&gt;
  &lt;child1/&gt;child 1
  &lt;child2/&gt;child 2
  &lt;child3/&gt;child 3&lt;/parent&gt;
</code></pre>
<p>und des ist ja nu absolut falsch</p>
<p>dank 4 helpings</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1240050</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1240050</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Tue, 06 Mar 2007 09:44:47 GMT</pubDate></item><item><title><![CDATA[Reply to MSXML newline after node on Tue, 06 Mar 2007 18:18:29 GMT]]></title><description><![CDATA[<p>Naja so macht man das auch nicht <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /><br />
Versuchs mal damit:<br />
pXMLDom-&gt;preserveWhiteSpace = VARIANT_TRUE;<br />
Vorrausgesetzt pXMLDom ist dein XMLDOMDocument Dingens.<br />
Wenn du das dann abspeicherst, sollte der das ganz normal formatiert ausgeben (wie du das willst)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1240489</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1240489</guid><dc:creator><![CDATA[nep]]></dc:creator><pubDate>Tue, 06 Mar 2007 18:18:29 GMT</pubDate></item><item><title><![CDATA[Reply to MSXML newline after node on Wed, 07 Mar 2007 07:20:13 GMT]]></title><description><![CDATA[<p>werds mal ausprobieren - danke {=</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1240719</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1240719</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Wed, 07 Mar 2007 07:20:13 GMT</pubDate></item><item><title><![CDATA[Reply to MSXML newline after node on Thu, 08 Mar 2007 07:09:40 GMT]]></title><description><![CDATA[<p>hab nu einiges rumprobiert, bringt nichts, das ergebnis sieht immer so aus:</p>
<pre><code>&lt;parent&gt;
    &lt;child1&gt;child 1&lt;/child1&gt;&lt;child2&gt;child 2&lt;/child2&gt;&lt;child3&gt;child 3&lt;/child3&gt;&lt;/parent&gt;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1241389</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1241389</guid><dc:creator><![CDATA[EXDW]]></dc:creator><pubDate>Thu, 08 Mar 2007 07:09:40 GMT</pubDate></item></channel></rss>